Python: Account for non-evaluation of annotations in cyclic imports.

Should fix #2426.

Essentially, we disregard expressions used inside annotations, if these
annotations occur in a file that has `from __future__ import annotations`, as
this prevents the annotations from being evaluated.
This commit is contained in:
Taus Brock-Nannestad
2019-11-25 15:32:52 +01:00
parent 77c869f528
commit 036e0f75c8
7 changed files with 67 additions and 1 deletions

View File

@@ -0,0 +1 @@
Imports/ModuleLevelCyclicImport.ql