File: stubgen

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (20 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
"""Generator of dynamically typed draft stubs for arbitrary modules.

This is just a wrapper script. Look at mypy/stubgen.py for the actual
implementation.
"""

import os
import os.path
import sys

file_dir = os.path.dirname(__file__)
parent_dir = os.path.join(file_dir, os.pardir)
if os.path.exists(os.path.join(parent_dir, '.git')):
    # We are running from a git clone.
    sys.path.insert(0, parent_dir)

import mypy.stubgen

mypy.stubgen.main()