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

Method is_package_init_file

mypy/nodes.py:558–559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 return visitor.visit_mypy_file(self)
557
558 def is_package_init_file(self) -> bool:
559 return len(self.path) != 0 and os.path.basename(self.path).startswith("__init__.")
560
561 def is_future_flag_set(self, flag: str) -> bool:
562 return flag in self.future_import_flags

Callers 6

visit_func_defMethod · 0.80
process_importMethod · 0.80
visit_mypy_fileMethod · 0.80
is_package_moduleMethod · 0.80

Calls 2

lenFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected