MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / _get_annotations

Function _get_annotations

src/licensedcode/_vendor/attr/_make.py:436–443  ·  view source on GitHub ↗

Get annotations for *cls*.

(cls)

Source from the content-addressed store, hash-verified

434
435
436def _get_annotations(cls):
437 """
438 Get annotations for *cls*.
439 """
440 if _has_own_attribute(cls, "__annotations__"):
441 return cls.__annotations__
442
443 return {}
444
445
446def _counter_getter(e):

Callers 1

_transform_attrsFunction · 0.85

Calls 1

_has_own_attributeFunction · 0.85

Tested by

no test coverage detected