Skip to content

[ephem] Remove wrong protocol base classes#15587

Merged
srittau merged 1 commit intopython:mainfrom
srittau:ephem-protocols
Apr 1, 2026
Merged

[ephem] Remove wrong protocol base classes#15587
srittau merged 1 commit intopython:mainfrom
srittau:ephem-protocols

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Apr 1, 2026

No description provided.

@srittau
Copy link
Copy Markdown
Collaborator Author

srittau commented Apr 1, 2026

mypy 1.20 complains about protocols that are also disjoint_bases. Marking these concrete classes as protocols also seems wrong, considering they are not protocols at runtime. If it makes sense to have protocols with a similar interface, we should add them as stub-only classes.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau mentioned this pull request Apr 1, 2026
@srittau srittau merged commit 9553477 into python:main Apr 1, 2026
39 checks passed
@srittau srittau deleted the ephem-protocols branch April 1, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants