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

Function convert_extra_attrs

mypy/exportjson.py:389–395  ·  view source on GitHub ↗
(self: ExtraAttrs)

Source from the content-addressed store, hash-verified

387
388
389def convert_extra_attrs(self: ExtraAttrs) -> Json:
390 return {
391 ".class": "ExtraAttrs",
392 "attrs": {k: convert_type(v) for k, v in self.attrs.items()},
393 "immutable": sorted(self.immutable),
394 "mod_name": self.mod_name,
395 }
396
397
398def convert_type_alias_type(self: TypeAliasType) -> Json:

Callers 1

convert_instanceFunction · 0.85

Calls 3

convert_typeFunction · 0.85
sortedFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…