Open pawamoy opened 3 months ago
In the following example:
dataclass_opts: dict[str, bool] if sys.version_info >= (3, 10): dataclass_opts = {"slots": True} else: dataclass_opts = {}
...the value of dataclass_opt will be None.
dataclass_opt
None
Should we visit the if nodes instead and merge the assigned value to the previously registered annotated-only attribute?
if
/
In could help value inference in #240.
Is your feature request related to a problem? Please describe.
In the following example:
...the value of
dataclass_opt
will beNone
.Describe the solution you'd like
Should we visit the
if
nodes instead and merge the assigned value to the previously registered annotated-only attribute?Describe alternatives you've considered
/
Additional context
In could help value inference in #240.