Make View timeout parameter keyword-only

This commit is contained in:
Rapptz 2021-06-10 09:06:04 -04:00
parent f6ea03230e
commit 04573c3c06

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__: