Skip to content

Commit 3c1d234

Browse files
committed
Fix various third-party stubtest allowlists
1 parent 3f08b32 commit 3c1d234

File tree

11 files changed

+0
-132
lines changed

11 files changed

+0
-132
lines changed

stubs/auth0-python/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ auth0\.test.*
55
# The way these stubs are currently implemented is that we pretend all classes have async methods
66
# Even though in reality, users need to call `auth0.asyncify.asyncify` to generate async subclasses
77
auth0\..*_async
8-
9-
# Inconsistently implemented, ommitted
10-
auth0\.management\.Auth0\..*

stubs/fanstatic/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# These are methods and attributes that really should have been
44
# prefixed with a `_`, since they should only really be used
55
# internally
6-
fanstatic.Library.init_library_nr
76
fanstatic.core.Asset.init_dependency_nr
87
fanstatic.core.Library.init_library_nr
98

@@ -22,9 +21,6 @@ fanstatic.compiler.mtime
2221
# should really be abstract and instead defines some attributes as
2322
# None, even though all subclasses populate them, so these have been
2423
# made abstract to make defining correct subclasses more easy
25-
fanstatic.Group.depends
26-
fanstatic.Group.resources
27-
fanstatic.Group.supports
2824
fanstatic.core.Asset.depends
2925
fanstatic.core.Asset.resources
3026
fanstatic.core.Asset.supports
@@ -38,24 +34,18 @@ fanstatic.core.Group.supports
3834
# The API for Compiler has very much the same problem, so these are
3935
# some more attributes/methods that have been made abstract for the
4036
# purposes of type checking
41-
fanstatic.Compiler.name
42-
fanstatic.Compiler.source_extension
4337
fanstatic.Minifier.name
4438
fanstatic.Minifier.source_extension
4539
fanstatic.Minifier.target_extension
4640
fanstatic.compiler.CommandlineBase.command
4741
fanstatic.compiler.Compiler.name
4842
fanstatic.compiler.Compiler.source_extension
49-
fanstatic.compiler.Minifier.name
50-
fanstatic.compiler.Minifier.source_extension
51-
fanstatic.compiler.Minifier.target_extension
5243
fanstatic.compiler.NullCompiler.name
5344
fanstatic.registry.Registry.ENTRY_POINT
5445

5546
# This is only inconsistent because the library authors set this
5647
# attribute to `None` on the class, so they could assign a docstring
5748
# to it. `__init__` will always populate this attribute with a `str`
58-
fanstatic.Library.path
5949
fanstatic.core.Library.path
6050

6151
# Error: variable differs from runtime type

stubs/gevent/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@ gevent.pywsgi.Environ.iteritems
5252
# it's not necessary for public API
5353
gevent.hub.Waiter.switch_args
5454

55-
# these may be gevent extensions or methods for backwards compatibility
56-
# for now we're fine with pretending it's not there
57-
gevent.socket.SocketType.__enter__
58-
gevent.socket.SocketType.__exit__
59-
gevent.socket.SocketType.accept
60-
gevent.socket.SocketType.closed
61-
gevent.socket.SocketType.dup
62-
gevent.socket.SocketType.get_inheritable
63-
gevent.socket.SocketType.makefile
64-
gevent.socket.SocketType.sendfile
65-
gevent.socket.SocketType.set_inheritable
66-
67-
# Pretends to re-export a type marked @disjoint_base in the stubs, but runtime
68-
# defines __slots__
69-
gevent.socket.SocketType$
70-
7155
# zope.interface related attributes we can ignore
7256
gevent.[\w\.]+\.__implemented__
7357
gevent.[\w\.]+\.__providedBy__
@@ -84,22 +68,6 @@ gevent.ssl.os
8468
gevent.ssl.warnings
8569
gevent\.subprocess\._[A-Za-z0-9]\w*
8670

87-
# gevent implements its own Popen which doesn't completely match the original
88-
# API, for now we ignore this discrepancy
89-
gevent.subprocess.Popen.rawlink
90-
gevent.subprocess.Popen.__del__
91-
92-
# Error: is not present at runtime
93-
# =============================
94-
# Due to the way gevent copies globals from other modules, there's a few symbols
95-
# that may not end up in the module, that would otherwise end up there with a
96-
# `from x import *`. None of these seem critical, so we ignore them. For socket
97-
# we ignore all constants that start with at least one segment of all uppercase
98-
# letters before the underscore
99-
gevent\.socket\.[A-Z0-9]+(_\w+)?
100-
gevent.ssl.PROTOCOL_SSLv2
101-
gevent.ssl.PROTOCOL_SSLv3
102-
10371
# Error: differs from runtime type
10472
# ======================
10573
# these are None in the base class, but all settings are a subclass
@@ -140,9 +108,6 @@ gevent._abstract_linkable.AbstractLinkable.rawlink
140108
gevent._abstract_linkable.AbstractLinkable.unlink
141109

142110
# removed undocumented arguments for internal use
143-
gevent.Greenlet.link
144-
gevent.Greenlet.link_exception
145-
gevent.Greenlet.link_value
146111
gevent.greenlet.Greenlet.link
147112
gevent.greenlet.Greenlet.link_exception
148113
gevent.greenlet.Greenlet.link_value
@@ -158,36 +123,7 @@ gevent.pywsgi.WSGIHandler.__init__
158123
# we're fine with holding the geven implemenation to the same restrictions
159124
# additionally there's some functions with additional optional arguments, that
160125
# we are fine with ignoring for now as well
161-
gevent.socket.SocketType.bind
162-
gevent.socket.SocketType.connect
163-
gevent.socket.SocketType.connect_ex
164-
gevent.socket.SocketType.send
165-
gevent.socket.SocketType.sendall
166-
gevent.socket.SocketType.setblocking
167-
gevent.socket.SocketType.settimeout
168-
gevent.socket.SocketType.shutdown
169126
gevent.socket.cancel_wait
170-
gevent.socket.gethostbyaddr
171-
gevent.socket.gethostbyname
172-
gevent.socket.gethostbyname_ex
173-
gevent.socket.getnameinfo
174-
gevent.socket.socket.closed
175-
gevent.socket.wait_readwrite
176-
gevent.socket.wait_write
177-
gevent.socket.socket.__slots__
178-
179-
# we have punted on ssl, the gevent version of these functions have an additional
180-
# argument for timeouts/blocking and there are some with different default values
181-
# for nbytes/length, for now we ignore that fact
182-
gevent.ssl.SSLSocket.__init__
183-
gevent.ssl.SSLSocket.do_handshake
184-
gevent.ssl.SSLSocket.read
185-
gevent.ssl.SSLSocket.send
186-
gevent.ssl.get_server_certificate
187-
188-
# we have punted on subprocess, the gevent version has slightly different arguments
189-
# for now we ignore that fact, most of the ways to call Popen should be compatible
190-
gevent.subprocess.Popen.__init__
191127

192128
# gevent overwrites with a named parameter for fd, but we're fine with only
193129
# supporting the API of the superclass

stubs/gevent/@tests/stubtest_allowlist_darwin.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,3 @@ gevent.libev.watcher.watcher.feed
1616

1717
# undocumented argument for internal use only
1818
gevent.libev.watcher.watcher.__init__
19-
20-
21-
# we have punted on socket, the gevent version of these functions sometimes use
22-
# named parameters, while the base implementation only allows positional arguments
23-
# we're fine with holding the geven implemenation to the same restrictions
24-
# additionally there's some functions with additional optional arguments, that
25-
# we are fine with ignoring for now as well
26-
gevent.socket.SocketType.recvmsg_into
27-
gevent.socket.SocketType.sendmsg
28-
gevent.socket.socket.recvmsg_into
29-
gevent.socket.socket.sendmsg

stubs/gevent/@tests/stubtest_allowlist_linux.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ gevent.libev.watcher.watcher.feed
2323

2424
# undocumented argument for internal use only
2525
gevent.libev.watcher.watcher.__init__
26-
27-
28-
# we have punted on socket, the gevent version of these functions sometimes use
29-
# named parameters, while the base implementation only allows positional arguments
30-
# we're fine with holding the geven implemenation to the same restrictions
31-
# additionally there's some functions with additional optional arguments, that
32-
# we are fine with ignoring for now as well
33-
gevent.socket.SocketType.recvmsg_into
34-
gevent.socket.SocketType.sendmsg
35-
gevent.socket.socket.recvmsg_into
36-
gevent.socket.socket.sendmsg

stubs/psutil/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ psutil._pssunos
88
psutil._psutil_aix
99
psutil._psutil_bsd
1010
psutil._psutil_sunos
11-
12-
# process_iter is enhanced with cache_clear method that's not detected by stubtest
13-
psutil.process_iter

stubs/pynput/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
2-
pynput.mouse.Controller.__init__
3-
41
# Platform specific private utils:
52
pynput._util.xorg_keysyms
63
pynput._util.xorg

stubs/pyserial/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ serial.serialjava # No Java Communications API implementation found
88
# ======================
99
# These are positional only argument in the stub because they inherit from io.RawIOBase
1010
# but at runtime they are normal arguments that don't have consistent names.
11-
serial.Serial.write
12-
serial.SerialBase.readinto
1311
serial.serialutil.SerialBase.readinto
1412
serial.rfc2217.Serial.write
1513
serial.rs485.RS485.write
1614
serial.urlhandler.protocol_cp2110.Serial.write
1715
serial.urlhandler.protocol_loop.Serial.write
18-
serial.urlhandler.protocol_rfc2217.Serial.write
1916
serial.urlhandler.protocol_socket.Serial.write
2017
serial.urlhandler.protocol_spy.Serial.write
2118

@@ -33,22 +30,6 @@ serial.tools.miniterm.unichr
3330
serial.urlhandler.protocol_hwgrep.basestring
3431

3532
# Deprecated aliases
36-
serial.SerialBase.applySettingsDict
37-
serial.SerialBase.flushInput
38-
serial.SerialBase.flushOutput
39-
serial.SerialBase.getCD
40-
serial.SerialBase.getCTS
41-
serial.SerialBase.getDSR
42-
serial.SerialBase.getRI
43-
serial.SerialBase.getSettingsDict
44-
serial.SerialBase.inWaiting
45-
serial.SerialBase.interCharTimeout
46-
serial.SerialBase.isOpen
47-
serial.SerialBase.sendBreak
48-
serial.SerialBase.setDTR
49-
serial.SerialBase.setPort
50-
serial.SerialBase.setRTS
51-
serial.SerialBase.writeTimeout
5233
serial.serialutil.SerialBase.applySettingsDict
5334
serial.serialutil.SerialBase.flushInput
5435
serial.serialutil.SerialBase.flushOutput
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
jose.backends.cryptography_backend
2-
jose.backends.CryptographyAESKey
3-
jose.backends.CryptographyECKey
4-
jose.backends.CryptographyHMACKey
5-
jose.backends.CryptographyRSAKey
6-
jose.backends.ECDSAECKey

stubs/setuptools/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Is a functools.partial, so stubtest says "is not a function"
2-
setuptools.modified.newer_pairwise_group
32
setuptools._distutils._modified.newer_pairwise_group
43

54
# Runtime initializes to None, but this really should never be None when used

0 commit comments

Comments
 (0)