Skip to content

Commit bfc0508

Browse files
committed
Merge branch 'main' into mypy-1.20.0
2 parents 9274863 + 1004155 commit bfc0508

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

stubs/channels/@tests/stubtest_allowlist.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ channels.auth.UserLazyObject.MultipleObjectsReturned
77
channels.auth.UserLazyObject.NotUpdated
88
channels.auth.UserLazyObject@AnnotatedWith
99

10+
# "is not a function", because it's wrapped in database_sync_to_async,
11+
# which makes it a class instance.
12+
channels.consumer.SyncConsumer.dispatch
13+
1014
# database_sync_to_async is implemented as a class instance but stubbed as a function
1115
# for better type inference when used as decorator/function
1216
channels.db.database_sync_to_async

stubs/ephem/ephem/_libastro.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Unused
22
from datetime import datetime as _datetime
3-
from typing import Final, NoReturn, Protocol, TypedDict, overload, type_check_only
3+
from typing import Final, NoReturn, TypedDict, overload, type_check_only
44
from typing_extensions import Self, TypeAlias, deprecated, disjoint_base
55

66
_DateInitType: TypeAlias = (
@@ -95,7 +95,7 @@ class Observer:
9595
def radec_of(self, az: float | str, alt: float | str) -> tuple[Angle, Angle]: ...
9696

9797
@disjoint_base
98-
class Body(Protocol):
98+
class Body:
9999
@property
100100
def name(self) -> str | None: ...
101101
@property
@@ -152,7 +152,7 @@ class Body(Protocol):
152152
def writedb(self) -> str: ...
153153
def parallactic_angle(self) -> Angle: ...
154154

155-
class Planet(Body, Protocol):
155+
class Planet(Body):
156156
@property
157157
def hlon(self) -> Angle: ...
158158
@property
@@ -200,7 +200,7 @@ class Saturn(Planet):
200200
def sun_tilt(self) -> Angle: ...
201201

202202
@disjoint_base
203-
class PlanetMoon(Protocol):
203+
class PlanetMoon:
204204
@property
205205
def name(self) -> str: ...
206206
@property

0 commit comments

Comments
 (0)