mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
stubs for tabnanny (#1068)
This commit is contained in:
committed by
Guido van Rossum
parent
df2970865b
commit
acd9862fae
22
stdlib/2and3/tabnanny.pyi
Normal file
22
stdlib/2and3/tabnanny.pyi
Normal file
@@ -0,0 +1,22 @@
|
||||
# Stubs for tabnanny (Python 2 and 3)
|
||||
|
||||
import os
|
||||
import sys
|
||||
from typing import Iterable, Tuple, Union
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
_Path = Union[str, bytes, os.PathLike]
|
||||
else:
|
||||
_Path = Union[str, bytes]
|
||||
|
||||
verbose = ... # type: int
|
||||
filename_only = ... # type: int
|
||||
|
||||
class NannyNag(Exception):
|
||||
def __init__(self, lineno: int, msg: str, line: str) -> None: ...
|
||||
def get_lineno(self) -> int: ...
|
||||
def get_msg(self) -> str: ...
|
||||
def get_line(self) -> str: ...
|
||||
|
||||
def check(file: _Path) -> None: ...
|
||||
def process_tokens(tokens: Iterable[Tuple[int, str, Tuple[int, int], Tuple[int, int], str]]) -> None: ...
|
||||
Reference in New Issue
Block a user