|
1 | 1 | from _typeshed import Unused |
2 | 2 | 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 |
4 | 4 | from typing_extensions import Self, TypeAlias, deprecated, disjoint_base |
5 | 5 |
|
6 | 6 | _DateInitType: TypeAlias = ( |
@@ -95,7 +95,7 @@ class Observer: |
95 | 95 | def radec_of(self, az: float | str, alt: float | str) -> tuple[Angle, Angle]: ... |
96 | 96 |
|
97 | 97 | @disjoint_base |
98 | | -class Body(Protocol): |
| 98 | +class Body: |
99 | 99 | @property |
100 | 100 | def name(self) -> str | None: ... |
101 | 101 | @property |
@@ -152,7 +152,7 @@ class Body(Protocol): |
152 | 152 | def writedb(self) -> str: ... |
153 | 153 | def parallactic_angle(self) -> Angle: ... |
154 | 154 |
|
155 | | -class Planet(Body, Protocol): |
| 155 | +class Planet(Body): |
156 | 156 | @property |
157 | 157 | def hlon(self) -> Angle: ... |
158 | 158 | @property |
@@ -200,7 +200,7 @@ class Saturn(Planet): |
200 | 200 | def sun_tilt(self) -> Angle: ... |
201 | 201 |
|
202 | 202 | @disjoint_base |
203 | | -class PlanetMoon(Protocol): |
| 203 | +class PlanetMoon: |
204 | 204 | @property |
205 | 205 | def name(self) -> str: ... |
206 | 206 | @property |
|
0 commit comments