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

Function main

mypy/stubgen.py:2049–2057  ·  view source on GitHub ↗
(args: list[str] | None = None)

Source from the content-addressed store, hash-verified

2047
2048
2049def main(args: list[str] | None = None) -> None:
2050 mypy.util.check_python_version("stubgen")
2051 # Make sure that the current directory is in sys.path so that
2052 # stubgen can be run on packages in the current directory.
2053 if not ("" in sys.path or "." in sys.path):
2054 sys.path.insert(0, "")
2055
2056 options = parse_options(sys.argv[1:] if args is None else args)
2057 generate_stubs(options)
2058
2059
2060if __name__ == "__main__":

Callers 1

stubgen.pyFile · 0.70

Calls 3

generate_stubsFunction · 0.85
insertMethod · 0.80
parse_optionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…