third-party: make some protocol params pos-only (#11006)

This commit is contained in:
Jelle Zijlstra
2023-11-09 22:40:10 -08:00
committed by GitHub
parent 4deef7550f
commit 0c7bdffa90
7 changed files with 11 additions and 11 deletions

View File

@@ -13,9 +13,9 @@ _FormErrors: TypeAlias = dict[str | None, Sequence[str] | _FormErrors]
# not instantianted after a new field had been added/removed
class _UnboundFields(Protocol):
@overload
def __get__(self, obj: None, owner: type[object] | None = None) -> list[tuple[str, UnboundField[Any]]] | None: ...
def __get__(self, __obj: None, __owner: type[object] | None = None) -> list[tuple[str, UnboundField[Any]]] | None: ...
@overload
def __get__(self, obj: object, owner: type[object] | None = None) -> list[tuple[str, UnboundField[Any]]]: ...
def __get__(self, __obj: object, __owner: type[object] | None = None) -> list[tuple[str, UnboundField[Any]]]: ...
class BaseForm:
meta: DefaultMeta