mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-04 18:43:23 +08:00
pyclbr: move to 2and3 (#1034)
* pyclbr: move to 2and3 This module is completely identical between 2 and 3 in CPython (apart from a small few syntax changes). * fix typo
This commit is contained in:
committed by
Łukasz Langa
parent
13dbbf9084
commit
7906059adb
@@ -1,40 +0,0 @@
|
||||
from typing import List, Union, Sequence, Optional, Dict
|
||||
|
||||
|
||||
class Class:
|
||||
module = ... # type: str
|
||||
name = ... # type: str
|
||||
super = Optional[List[Union["Class", str]]]
|
||||
methods = ... # type: Dict[str, int]
|
||||
file = ... # type: int
|
||||
lineno = ... # type: int
|
||||
|
||||
def __init__(self,
|
||||
module: str,
|
||||
name: str,
|
||||
super: Optional[List[Union["Class", str]]],
|
||||
file: str,
|
||||
lineno: int) -> None: ...
|
||||
|
||||
|
||||
class Function:
|
||||
module = ... # type: str
|
||||
name = ... # type: str
|
||||
file = ... # type: int
|
||||
lineno = ... # type: int
|
||||
|
||||
def __init__(self,
|
||||
module: str,
|
||||
name: str,
|
||||
file: str,
|
||||
lineno: int) -> None: ...
|
||||
|
||||
|
||||
def readmodule(module: str,
|
||||
path: Optional[Sequence[str]] = ...
|
||||
) -> Dict[str, Class]: ...
|
||||
|
||||
|
||||
def readmodule_ex(module: str,
|
||||
path: Optional[Sequence[str]] = ...
|
||||
) -> Dict[str, Union[Class, Function, List[str]]]: ...
|
||||
Reference in New Issue
Block a user