pyclbr: add parent argument for py37 on (#4029)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-17 08:25:18 -07:00
committed by GitHub
parent 9c9eae8462
commit 4405250ed1
3 changed files with 9 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
import sys
from typing import List, Union, Sequence, Optional, Dict
@@ -9,12 +10,10 @@ class Class:
file: int
lineno: int
def __init__(self,
module: str,
name: str,
super: Optional[List[Union[Class, str]]],
file: str,
lineno: int) -> None: ...
if sys.version_info >= (3, 7):
def __init__(self, module: str, name: str, super: Optional[List[Union[Class, str]]], file: str, lineno: int, parent: Optional[Class] = ...) -> None: ...
else:
def __init__(self, module: str, name: str, super: Optional[List[Union[Class, str]]], file: str, lineno: int) -> None: ...
class Function:
@@ -23,11 +22,10 @@ class Function:
file: int
lineno: int
def __init__(self,
module: str,
name: str,
file: str,
lineno: int) -> None: ...
if sys.version_info >= (3, 7):
def __init__(self, module: str, name: str, file: str, lineno: int, parent: Optional[Function] = ...) -> None: ...
else:
def __init__(self, module: str, name: str, file: str, lineno: int) -> None: ...
def readmodule(module: str,

View File

@@ -49,8 +49,6 @@ logging.handlers.MemoryHandler.__init__
macurl2path
multiprocessing.shared_memory
os.utime
pyclbr.Class.__init__
pyclbr.Function.__init__
pyexpat.XMLParserType.ExternalEntityParserCreate
queue.SimpleQueue.__init__
secrets.SystemRandom.getstate

View File

@@ -120,8 +120,6 @@ pickle.Pickler.reducer_override
platform.DEV_NULL
profile.Profile.runcall
pwd.getpwuid
pyclbr.Class.__init__
pyclbr.Function.__init__
queue.SimpleQueue.__init__
random.Random.getrandbits
random.getrandbits