File: code.pyi

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 (27 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Stubs for code

from typing import Any, Callable, Mapping, Optional
from types import CodeType

class InteractiveInterpreter:
    def __init__(self, locals: Optional[Mapping[str, Any]] = ...) -> None: ...
    def runsource(self, source: str, filename: str = ...,
                  symbol: str = ...) -> bool: ...
    def runcode(self, code: CodeType) -> None: ...
    def showsyntaxerror(self, filename: Optional[str] = ...) -> None: ...
    def showtraceback(self) -> None: ...
    def write(self, data: str) -> None: ...

class InteractiveConsole(InteractiveInterpreter):
    def __init__(self, locals: Optional[Mapping[str, Any]] = ...,
                 filename: str = ...) -> None: ...
    def interact(self, banner: Optional[str] = ...) -> None: ...
    def push(self, line: str) -> bool: ...
    def resetbuffer(self) -> None: ...
    def raw_input(self, prompt: str = ...) -> str: ...

def interact(banner: Optional[str] = ...,
             readfunc: Optional[Callable[[str], str]] = ...,
             local: Optional[Mapping[str, Any]] = ...) -> None: ...
def compile_command(source: str, filename: str = ...,
                    symbol: str = ...) -> Optional[CodeType]: ...