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

Method generate_unused_ignore_notes

mypy/build.py:3694–3704  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3692 ]
3693
3694 def generate_unused_ignore_notes(self) -> None:
3695 if (
3696 self.options.warn_unused_ignores
3697 or codes.UNUSED_IGNORE in self.options.enabled_error_codes
3698 ) and codes.UNUSED_IGNORE not in self.options.disabled_error_codes:
3699 # We only need this for the daemon, regular incremental does this unconditionally.
3700 if self.meta and self.options.fine_grained_incremental:
3701 self.verify_dependencies(suppressed_only=True)
3702 is_typeshed = self.tree is not None and self.tree.is_typeshed_file(self.options)
3703 with self.wrap_context():
3704 self.manager.errors.generate_unused_ignore_errors(self.xpath, is_typeshed)
3705
3706 def generate_ignore_without_code_notes(self) -> None:
3707 if self.manager.errors.is_error_code_enabled(codes.IGNORE_WITHOUT_CODE):

Callers 3

process_stale_sccFunction · 0.80
update_module_isolatedFunction · 0.80

Calls 4

verify_dependenciesMethod · 0.95
wrap_contextMethod · 0.95
is_typeshed_fileMethod · 0.80

Tested by

no test coverage detected