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

Bug in eval.py #6

Closed
txytju opened this issue Apr 10, 2019 · 1 comment
Closed

Bug in eval.py #6

txytju opened this issue Apr 10, 2019 · 1 comment

Comments

@txytju
Copy link

txytju commented Apr 10, 2019

Is this line a bug? why is there a data type in function defination?
https://github.com/dbolya/yolact/blob/dev/eval.py#L244

@dbolya
Copy link
Owner

dbolya commented Apr 10, 2019

Those are Python3 type annotations (https://docs.python.org/3/library/typing.html) introduced in Python 3.5.

I use them time to time to tell my IDE what types things are for auto-completion. See this comment for an explanation of why I use them:
https://github.com/dbolya/yolact/blob/dev/eval.py#L441

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

No branches or pull requests

2 participants