MCPcopy
hub / github.com/python/mypy / _is_dataclasses_decorator

Function _is_dataclasses_decorator

mypy/plugins/dataclasses.py:993–998  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

991
992
993def _is_dataclasses_decorator(node: Node) -> bool:
994 if isinstance(node, CallExpr):
995 node = node.callee
996 if isinstance(node, RefExpr):
997 return node.fullname in dataclass_makers
998 return False
999
1000
1001def _has_direct_dataclass_transform_metaclass(info: TypeInfo) -> bool:

Callers 1

_get_transform_specFunction · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…