Skip to content

Commit 9553477

Browse files
authored
[ephem] Remove wrong protocol base classes (#15587)
1 parent e01edb5 commit 9553477

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)