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
.
Should we visit the if
nodes instead and merge the assigned value to the previously registered annotated-only attribute?
/
In could help value inference in #240.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too