is-annotated 1.0.1

Last updated:

0 purchases

is-annotated 1.0.1 Image
is-annotated 1.0.1 Images
Add to Cart

Description:

isannotated 1.0.1

is_annotated
Check if an object is an Annotated type.
This is a micro-package, containing the single function isannotated to check
if a type hint is an Annotated type. Annotated objects can't be checked by
normal isinstance checks.
Installation


pip install is_annotated

Documentation

from typing import Annotated
from is_annotated import isannotated

print(isannotated(1))
# False

print(isannotated(int))
# False

print(isannotated(Annotated[int, "1"]))
# True

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.