MCPcopy Index your code
hub / github.com/python/mypy / _add_empty_metadata

Function _add_empty_metadata

mypy/plugins/attrs.py:505–507  ·  view source on GitHub ↗

Add empty metadata to mark that we've finished processing this class.

(info: TypeInfo)

Source from the content-addressed store, hash-verified

503
504
505def _add_empty_metadata(info: TypeInfo) -> None:
506 """Add empty metadata to mark that we've finished processing this class."""
507 info.metadata["attrs"] = {"attributes": [], "frozen": False}
508
509
510def _detect_auto_attribs(ctx: mypy.plugin.ClassDefContext) -> bool:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…