Skip to content

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