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

Type annotations #194

Closed
wants to merge 13 commits into from
Closed

Type annotations #194

wants to merge 13 commits into from

Conversation

CCCodes
Copy link

@CCCodes CCCodes commented Dec 15, 2020

Fixes #185.

Changes proposed in this PR:
Add type annotations for

jobManager.py
jobQueue.py
tangoObjects.py
worker.py
(Branched from tests)
Some type annotations are best guesses because it was hard to determine exactly what types were acceptable. I ran all unittests and new sampleTest on it and got the same results with / and without the annotations, so there were no problems in those cases.

Copy link
Contributor

@fanpu fanpu left a comment

Choose a reason for hiding this comment

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

Hi @CCCodes, thanks for your PR!

I noticed that there are some changes unrelated to type annotations in the PR, would it be possible to only isolate the changes for type annotation as I assume that that is the intent of your PR?

In addition, there are also env/* files as well as pyenv.cfg being committed in this repo, which is not necessary. Could those be removed as well?

After that I will take a close look at the type annotations again. Thanks!

@CCCodes
Copy link
Author

CCCodes commented Dec 17, 2020

Thanks, I made a new pull request with the changes!

@CCCodes CCCodes closed this Dec 17, 2020
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.

Type annotations
3 participants