mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 01:23:24 +08:00
third-party: make some protocol params pos-only (#11006)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user