-
Couldn't load subscription status.
- Fork 5
Open
@jorenham
Description
(削除) I'm not sure if Suggestions are welcome.has_namespace is the best name for this typeguard, so (削除ここまで)
Example implementation that builds #17:
# _namespace.py from typing_extensions import TypeIs # --snip-- def has_namespace(obj: object, /) -> TypeIs[HasNamespace[Any]]: return hasattr(obj, "__array_namespace__")