Efficiently get the index-0 element of an iterable.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
is_annotated-1.0.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for is_annotated-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d8eed6ac314e9ca555f15458a09ac43db30acfe30f382c4e9a4dec458f5561b |
|
MD5 | 461e86f26a35aeaadf15ffeab36ddc28 |
|
BLAKE2b-256 | f15d8fc9651729e454fbce3526664a01f013d60beff93ce113bacbb7b814b158 |