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

Class Import

mypy/nodes.py:644–658  ·  view source on GitHub ↗

import m [as n]

Source from the content-addressed store, hash-verified

642
643
644class Import(ImportBase):
645 """import m [as n]"""
646
647 __slots__ = ("ids",)
648
649 __match_args__ = ("ids",)
650
651 ids: list[tuple[str, str | None]] # (module id, as id)
652
653 def __init__(self, ids: list[tuple[str, str | None]]) -> None:
654 super().__init__()
655 self.ids = ids
656
657 def accept(self, visitor: StatementVisitor[T]) -> T:
658 return visitor.visit_import(self)
659
660
661class ImportFrom(ImportBase):

Callers 6

visit_import_fromMethod · 0.90
visit_ImportMethod · 0.90
visit_importMethod · 0.90
read_statementFunction · 0.90
deserialize_importsFunction · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…