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

Fix incorrect type annotations, add py.typed. #166

Merged
merged 6 commits into from
Jul 11, 2021

Conversation

DanAlbert
Copy link
Collaborator

@DanAlbert DanAlbert commented Jul 9, 2021

These commits together are the errors I found while updating Liberation to type check our uses of pydcs. In one case there was an actual bug (loading a mission with a refuel/rearm landing waypoint and then resaving it would corrupt the mission by writing a string back where an integer was needed).

This also adds the py.typed file, without which mypy ignore type annotations in this package when checking dependents: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

@DanAlbert
Copy link
Collaborator Author

If you'd prefer one big patch lmk. I'm working through getting Liberation up to the latest and finding a lot of little things.

@rp-
Copy link
Collaborator

rp- commented Jul 9, 2021

hmm maybe one PR with multiple commits, not sure its useful to have 1 PR per commit, until something depends on it.

@DanAlbert
Copy link
Collaborator Author

Can do. Will finish up my migration and then send them in a batch. I'm done for the day though so you have a reprieve :)

@DanAlbert DanAlbert force-pushed the fix-mission-constructor branch from be5d0bf to ee2775e Compare July 9, 2021 23:37
@DanAlbert DanAlbert changed the title Relax constructor of Mission. Fix incorrect type annotations, add py.typed. Jul 9, 2021
@DanAlbert
Copy link
Collaborator Author

Okay, ready to go. Checks another box on #160.

@rp- rp- merged commit 1fa1538 into pydcs:master Jul 11, 2021
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