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

Method copy

mypy/types.py:1556–1557  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1554 return self.attrs == other.attrs and self.immutable == other.immutable
1555
1556 def copy(self) -> ExtraAttrs:
1557 return ExtraAttrs(self.attrs.copy(), self.immutable.copy(), self.mod_name)
1558
1559 def __repr__(self) -> str:
1560 return f"ExtraAttrs({self.attrs!r}, {self.immutable!r}, {self.mod_name!r})"

Callers 15

mainFunction · 0.45
and_conditional_mapsFunction · 0.45
solve_iterativelyFunction · 0.45
choose_freeFunction · 0.45
union_overload_resultMethod · 0.45
config_parser.pyFile · 0.45
destructure_overridesFunction · 0.45
apply_changesMethod · 0.45
get_unused_configsMethod · 0.45
import_contextMethod · 0.45
set_import_contextMethod · 0.45

Calls 1

ExtraAttrsClass · 0.85

Tested by 9

mainFunction · 0.36
run_caseMethod · 0.36
run_case_onceMethod · 0.36
use_tmp_dirFunction · 0.36
test_python_cmdlineFunction · 0.36
run_cmdFunction · 0.36