Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more type hints #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add more type hints #122

wants to merge 1 commit into from

Conversation

auscompgeek
Copy link
Member

This adds an explicit value union type, ensuring the documented types are in the type hints.

Also fix a few mypy warnings.

self._api = NtCoreApi(self.__createEntry)
self._tables = {}
self._entry_listeners = {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out this is completely unused.

@@ -0,0 +1,11 @@
from typing import Sequence, Union
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wtf is this extra file for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking what would otherwise be a cyclic import. I'd just put this at networktables/types.py, but… yeah.

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