Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Sep 11, 2020

Something slightly odd is happening here.

In #10729 it passed the mypy tests with this in place, but now if I make
a change to this file (or to scheduler_job.py, which imports DagRun) I
get an error with this.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Something slightly odd is happening here.

In apache#10729 it passed the mypy tests with this in place, but now if I make
a change to this file (or to scheduler_job.py, which imports DagRun) I
get an error _with_ this.
@ashb ashb requested a review from kaxil September 11, 2020 09:16
@kaxil kaxil merged commit 5cc8e98 into apache:master Sep 11, 2020
@kaxil kaxil deleted the mypy-type-oddness branch September 11, 2020 10:54
@ashb
Copy link
Member Author

ashb commented Sep 11, 2020

@kaxil you probably shouldn't have merged this, since it's failing static checks.

@ashb
Copy link
Member Author

ashb commented Sep 11, 2020

Something odd is going on with this line -- sometimes it complains about unused type comment, other times it complains about "determine type of ..."

Maybe I need to put the type ignore comments in the parenthesis.

@ashb
Copy link
Member Author

ashb commented Sep 11, 2020

And yet, on the result of this PR being merged:

root@6926c6309cd7:/opt/airflow# mypy airflow/models/dagrun.py
Success: no issues found in 1 source file

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.

3 participants