Make View timeout parameter keyword-only

This commit is contained in:
Rapptz committed 2021-06-10 09:06:04 -04:00
1 parent f6ea03230e
commit 04573c3c06
1 file changed
+1 -1
+1 -1
View File
@@ -144,7 +144,7 @@ class View:
cls.__view_children_items__ = children
def __init__(self, timeout: Optional[float] = 180.0):
def __init__(self, *, timeout: Optional[float] = 180.0):
self.timeout = timeout
self.children: List[Item] = []
for func in self.__view_children_items__: