You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
)
importtyping_extensionsfromtyping_extensionsimportNever, ParamSpec, TypeAlias, TypeGuard, TypeVarTuplefrombasedtyping.runtime_onlyimportOldUnionTypeifTYPE_CHECKING:
fromtyping_extensionsimportoverrideelse:
defoverride(arg, /):
# TODO: Remove when typing_extensions is >= 4.4withcontextlib.suppress(AttributeError, TypeError):
# Skip the attribute silently if it is not writable.# AttributeError happens if the object has __slots__ or a# read-only property, TypeError if it's a builtin class.arg.__override__=TruereturnargifnotTYPE_CHECKING:
# TODO: remove the TYPE_CHECKING block once these are typed in basedtypeshedfromtypingimport_GenericAlias, _remove_dups_flatten, _tp_cache, _type_check
The text was updated successfully, but these errors were encountered:
AttributeError happens if the object has __slots__ or a
read-only property, TypeError if it's a builtin class.
basedtyping/basedtyping/__init__.py
Line 34 in 4689c3c
The text was updated successfully, but these errors were encountered: