Upgrade to stubtest with dunder pos only reverted (#7442)

This commit is contained in:
Shantanu
2022-03-05 18:38:08 -08:00
committed by GitHub
parent cda3d9cf72
commit 77e5a2d468
10 changed files with 21 additions and 35 deletions

View File

@@ -0,0 +1 @@
.*\.AttributeGetter.__repr__ # has an extra argument, but also a million things inherit from it

View File

@@ -1,2 +1,7 @@
cachetools.Cache.get
cachetools.cache.Cache.get
# it looks like cachetools stubs are really out of date, so none of the modules
# referenced exist anymore
cachetools\..*\.__(get|set|del)item__ # has extra argument
cachetools\..*TTLCache.__repr__

View File

@@ -1,4 +1,5 @@
frozendict.FrozenOrderedDict
frozendict.frozendict.__hash__
frozendict.frozendict.__new__
frozendict.frozendict.__repr__ # forwards args to super
frozendict.frozendict.copy

View File

@@ -22,6 +22,8 @@ class FilterNode:
assertion: Any
elements: Any
def __init__(self, tag: Any | None = ..., assertion: Any | None = ...) -> None: ...
def __str__(self, pos: int = ...) -> str: ...
def __repr__(self, pos: int = ...) -> str: ...
def append(self, filter_node): ...
def evaluate_match(match, schema, auto_escape, auto_encode, validator, check_names): ...

View File

@@ -0,0 +1 @@
selenium.webdriver.__all__ # intentional

View File

@@ -20,6 +20,7 @@ from .webkitgtk.options import Options as WebKitGTKOptions
from .webkitgtk.webdriver import WebDriver as WebKitGTK
# We need an explicit __all__ because some of the above won't otherwise be exported.
# This could also be fixed using assignments
__all__ = [
"Firefox",
"FirefoxProfile",