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

Function make_wildcard_trigger

mypy/server/trigger.py:17–26  ·  view source on GitHub ↗

Special trigger fired when any top-level name is changed in a module. Note that this is different from a module trigger, as module triggers are only fired if the module is created, deleted, or replaced with a non-module, whereas a wildcard trigger is triggered for namespace changes.

(module: str)

Source from the content-addressed store, hash-verified

15
16
17def make_wildcard_trigger(module: str) -> str:
18 """Special trigger fired when any top-level name is changed in a module.
19
20 Note that this is different from a module trigger, as module triggers are only
21 fired if the module is created, deleted, or replaced with a non-module, whereas
22 a wildcard trigger is triggered for namespace changes.
23
24 This is used for "from m import *" dependencies.
25 """
26 return f"<{module}{WILDCARD_TAG}>"

Callers 5

process_type_infoMethod · 0.90
visit_import_allMethod · 0.90
visit_instanceMethod · 0.90
collect_attributesMethod · 0.90
_analyze_classFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…