Skip to content

Commit e5dcc79

Browse files
committed
Fix further third-party stubtest entries
1 parent 3c1d234 commit e5dcc79

File tree

30 files changed

+12
-142
lines changed

30 files changed

+12
-142
lines changed

stubs/Authlib/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ authlib.jose.drafts._jwe_algorithms.ECDH1PUAlgorithm.description
66
authlib.jose.drafts._jwe_algorithms.ECDH1PUAlgorithm.name
77
authlib.jose.drafts._jwe_enc_cryptography.C20PEncAlgorithm.description
88
authlib.jose.drafts._jwe_enc_cryptography.C20PEncAlgorithm.name
9-
authlib.jose.rfc7518.AESAlgorithm.description
10-
authlib.jose.rfc7518.AESAlgorithm.name
11-
authlib.jose.rfc7518.ECDHESAlgorithm.description
12-
authlib.jose.rfc7518.ECDHESAlgorithm.name
13-
authlib.jose.rfc7518.CBCHS2EncAlgorithm.CEK_SIZE
14-
authlib.jose.rfc7518.CBCHS2EncAlgorithm.description
15-
authlib.jose.rfc7518.CBCHS2EncAlgorithm.name
169
authlib.jose.rfc7518.jwe_algs.AESAlgorithm.description
1710
authlib.jose.rfc7518.jwe_algs.AESAlgorithm.name
1811
authlib.jose.rfc7518.jwe_algs.AESGCMAlgorithm.description
@@ -37,31 +30,14 @@ authlib.jose.rfc7518.jws_algs.RSAPSSAlgorithm.description
3730
authlib.jose.rfc7518.jws_algs.RSAPSSAlgorithm.name
3831

3932
# Methods whose *args and **kwargs arguments are added dynamically due to the @hooked decorator:
40-
authlib.oauth2.rfc6749.AuthorizationCodeGrant.create_token_response
41-
authlib.oauth2.rfc6749.AuthorizationCodeGrant.validate_token_request
42-
authlib.oauth2.rfc6749.AuthorizationEndpointMixin.validate_consent_request
43-
authlib.oauth2.rfc6749.ClientCredentialsGrant.create_token_response
44-
authlib.oauth2.rfc6749.ImplicitGrant.validate_authorization_request
45-
authlib.oauth2.rfc6749.RefreshTokenGrant.create_token_response
46-
authlib.oauth2.rfc6749.ResourceOwnerPasswordCredentialsGrant.create_token_response
47-
authlib.oauth2.rfc6749.grants.AuthorizationCodeGrant.create_token_response
48-
authlib.oauth2.rfc6749.grants.AuthorizationCodeGrant.validate_token_request
49-
authlib.oauth2.rfc6749.grants.AuthorizationEndpointMixin.validate_consent_request
50-
authlib.oauth2.rfc6749.grants.ClientCredentialsGrant.create_token_response
51-
authlib.oauth2.rfc6749.grants.ImplicitGrant.validate_authorization_request
52-
authlib.oauth2.rfc6749.grants.RefreshTokenGrant.create_token_response
53-
authlib.oauth2.rfc6749.grants.ResourceOwnerPasswordCredentialsGrant.create_token_response
5433
authlib.oauth2.rfc6749.grants.authorization_code.AuthorizationCodeGrant.create_token_response
5534
authlib.oauth2.rfc6749.grants.authorization_code.AuthorizationCodeGrant.validate_token_request
5635
authlib.oauth2.rfc6749.grants.base.AuthorizationEndpointMixin.validate_consent_request
5736
authlib.oauth2.rfc6749.grants.client_credentials.ClientCredentialsGrant.create_token_response
5837
authlib.oauth2.rfc6749.grants.implicit.ImplicitGrant.validate_authorization_request
5938
authlib.oauth2.rfc6749.grants.refresh_token.RefreshTokenGrant.create_token_response
6039
authlib.oauth2.rfc6749.grants.resource_owner_password_credentials.ResourceOwnerPasswordCredentialsGrant.create_token_response
61-
authlib.oauth2.rfc8628.DeviceCodeGrant.create_token_response
6240
authlib.oauth2.rfc8628.device_code.DeviceCodeGrant.create_token_response
63-
authlib.oidc.core.OpenIDImplicitGrant.validate_consent_request
64-
authlib.oidc.core.grants.OpenIDImplicitGrant.validate_consent_request
6541
authlib.oidc.core.grants.implicit.OpenIDImplicitGrant.validate_consent_request
6642

6743
# Exclude integrations dirs
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# private attributes / methods, not present in docs
2-
flask_socketio.SocketIOTestClient.clients
32
flask_socketio.test_client.SocketIOTestClient.clients
43
flask_socketio.gevent_socketio_found
54
flask_socketio.call

stubs/WTForms/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,20 @@
22
# =============================
33
# This is hack to get around Field.__new__ not being able to return
44
# UnboundField
5-
wtforms.Field.__get__
6-
wtforms.fields.Field.__get__
75
wtforms.fields.core.Field.__get__
86
# Since DefaultMeta can contain arbitrary values we added __getattr__
97
# to let mypy know that arbitrary attribute access is possible
108
wtforms.meta.DefaultMeta.__getattr__
119

1210
# Should allow setting and deleting any attribute
13-
wtforms.Flags.__delattr__
14-
wtforms.Flags.__setattr__
15-
wtforms.fields.Flags.__delattr__
16-
wtforms.fields.Flags.__setattr__
1711
wtforms.fields.core.Flags.__delattr__
1812
wtforms.fields.core.Flags.__setattr__
1913

20-
# Error: variable differs from runtime
21-
# ======================
22-
# _unbound_fields has some weird semantics: due to the metaclass it
23-
# will be None until the form class has been instantiated at least
24-
# once and then will stick around until someone adds a new field
25-
# to the class, which clears it back to None. Which means on instances
26-
# it will always be there and on the class it depends, so maybe this
27-
# should use a dummy descriptor? For now we just pretend it's set.
28-
# The behavior is documented in FormMeta, so I think it's fine.
29-
wtforms.Form._unbound_fields
30-
wtforms.form.Form._unbound_fields
31-
3214
# widget is both used as a ClassVar and instance variable and does
3315
# not necessarily reflect an upper bound on Widget, so we always use
3416
# our Widget Protocol definition that's contravariant on Self
35-
wtforms.Field.widget
36-
wtforms.FormField.widget
37-
wtforms.SelectField.widget
38-
wtforms.SelectMultipleField.widget
39-
wtforms.TextAreaField.widget
4017
wtforms.fields.Field.widget
4118
wtforms.fields.FormField.widget
4219
wtforms.fields.SelectField.widget
4320
wtforms.fields.SelectMultipleField.widget
4421
wtforms.fields.TextAreaField.widget
45-
wtforms.fields.choices.SelectField.widget
46-
wtforms.fields.choices.SelectMultipleField.widget
47-
wtforms.fields.core.Field.widget
48-
wtforms.fields.form.FormField.widget
49-
wtforms.fields.simple.TextAreaField.widget

stubs/WebOb/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ webob.response.ResponseBodyFile.close
9595
# Error: is inconsistent
9696
# ======================
9797
# set_cookie has a deprecated argument `expires` which has been removed upstream
98-
webob.Response.set_cookie
9998
webob.response.Response.set_cookie
10099

101100
# These are here due to the slightly more strict nature of the type annotation

stubs/channels/channels/consumer.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ from typing import Any, ClassVar, Protocol, TypedDict, type_check_only
33

44
from asgiref.typing import ASGIReceiveCallable, ASGISendCallable, Scope, WebSocketScope
55
from channels.auth import UserLazyObject
6-
from channels.db import database_sync_to_async
76
from channels.layers import BaseChannelLayer
87
from django.contrib.sessions.backends.base import SessionBase
98
from django.utils.functional import LazyObject
@@ -70,6 +69,5 @@ class SyncConsumer(AsyncConsumer):
7069

7170
# Since we're overriding asynchronous methods with synchronous ones,
7271
# we need to use `# type: ignore[override]` to suppress mypy errors.
73-
@database_sync_to_async
74-
def dispatch(self, message: dict[str, Any]) -> None: ... # type: ignore[override]
72+
async def dispatch(self, message: dict[str, Any]) -> None: ... # type: ignore[override]
7573
def send(self, message: dict[str, Any]) -> None: ... # type: ignore[override]

stubs/docker/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# additional requirements are needed, e.g. win32 apis
2-
docker.transport.NpipeHTTPAdapter
3-
docker.transport.NpipeSocket
4-
docker.transport.SSHHTTPAdapter
52
docker.transport.npipeconn
63
docker.transport.npipesocket
74
docker.transport.sshconn

stubs/fanstatic/@tests/stubtest_allowlist.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ fanstatic.core.Group.supports
3434
# The API for Compiler has very much the same problem, so these are
3535
# some more attributes/methods that have been made abstract for the
3636
# purposes of type checking
37-
fanstatic.Minifier.name
38-
fanstatic.Minifier.source_extension
39-
fanstatic.Minifier.target_extension
4037
fanstatic.compiler.CommandlineBase.command
4138
fanstatic.compiler.Compiler.name
4239
fanstatic.compiler.Compiler.source_extension
40+
fanstatic.compiler.Minifier.name
41+
fanstatic.compiler.Minifier.source_extension
42+
fanstatic.compiler.Minifier.target_extension
4343
fanstatic.compiler.NullCompiler.name
4444
fanstatic.registry.Registry.ENTRY_POINT
4545

stubs/fpdf2/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Argument has default at runtime, but using it raises a TypeError.
2-
fpdf.FPDF.set_creation_date
32
fpdf.fpdf.FPDF.set_creation_date
43

54
# fonttools shims since we can't import it

stubs/geopandas/@tests/stubtest_allowlist.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ geopandas\.(geodataframe\.)?GeoDataFrame\.plot
1414
geopandas\.io\._geoarrow
1515
geopandas\._exports
1616

17+
# stub parameter differs from runtime parameter "self"
18+
geopandas.geodataframe.GeoDataFrame.explore
19+
geopandas.geoseries.GeoSeries.explore
20+
geopandas.geoseries.GeoSeries.plot
21+
1722
# Inconsistent (TODO)
1823
geopandas\.(geoseries\.)?GeoSeries\.apply
1924
geopandas\.(geoseries\.)?GeoSeries\.fillna

stubs/gevent/@tests/stubtest_allowlist_darwin.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# internal API stuff we dropped because it wasn't necessary
44
gevent.libev.corecext.loop.async
55

6-
# these shouldn't be in __all__ they end up there, due to how gevent imports
7-
# the globals from the stdlib ssl module
8-
gevent.subprocess.Popen.pipe_cloexec
9-
106
# Error: is inconsistent
117
# ======================
128
# these are inconsistent due to the ParamSpec hack for positional only callables

0 commit comments

Comments
 (0)