Skip to content

Release 0.521 #3762

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

Closed
wants to merge 12 commits into from
Closed

Release 0.521 #3762

wants to merge 12 commits into from

Conversation

gvanrossum
Copy link
Member

See #3732.

JukkaL and others added 10 commits July 10, 2017 21:37
This started out as an attempt to make the logging messages around cache freshness/updates more useful, but I ended up discovering a bug in the code that updates the cache meta file when the mtime or path of the file has changes but size and source hash are the same. It wrote a list instead of a dict! This is a bug in a feature announced in 0.520 so should be included in 0.521 if/when we release it.

I also decided to ignore debug_cache when comparing options (since it only affects the JSON style -- it's still a per-file option but changing it no longer invalidates the cache)

And I made the --skip-version-check option strictly ignore the platform (since it's undocumented I can make it do what I want, and this is more useful for my one use case).
Fixes #3687 (fixes both the crash and the underlying name resolution issue).

The fix is quite simple, I also noticed that normalized flag for symbol table nodes was not serialized, so I added this too.
Fixes #3713

The idea is just to not show an error when accessing in the class body an attribute defined on ``self`` (mypy does not distinguishes them anyway). As well, the correct node is returned on lookup, previously this resulted in some spurious ``Any`` types.

(In addition I enable two previously skipped test, just noticed them when added tests for this PR.)
With per-file strict Optional, default-None args should always be interpreted as Optional (except with --no-implicit-optional), instead of only in strict Optional files.
@gvanrossum
Copy link
Member Author

Ignore the conflicts and test failures, this is a release branch.

@ilevkivskyi
Copy link
Member

Looks good!

@ilevkivskyi
Copy link
Member

You mentioned some time ago that @JukkaL has a fix for crashes in recursive TypedDicts #3685 and #3674. Will it be incorporated?

(FWIW there are similar crashes for NamedTuples, but IIUC TypedDicts have priority.)

@gvanrossum
Copy link
Member Author

No, Jukka told me that fix is more complex than he thought. We'll get it into 0.530.

@gvanrossum gvanrossum mentioned this pull request Jul 26, 2017
graingert pushed a commit to graingert/mypy that referenced this pull request Jul 26, 2017
@ilevkivskyi
Copy link
Member

I think this can be closed, but maybe we can keep the branch (at least for some time).

@gvanrossum gvanrossum closed this Jul 26, 2017
@msullivan msullivan deleted the release-0.521 branch May 20, 2019 20:53
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.

4 participants