Skip to content

Improvements to cheat sheet#14972

Merged
hauntsaninja merged 3 commits into
python:masterfrom
hauntsaninja:cheat-shee
Mar 30, 2023
Merged

Improvements to cheat sheet#14972
hauntsaninja merged 3 commits into
python:masterfrom
hauntsaninja:cheat-shee

Conversation

@hauntsaninja

Copy link
Copy Markdown
Collaborator

Everyone can use future annotations now. Also forward references are the most type hinting popular question on Stack Overflow, so give a little more detail.

The IO example should go with standard duck types.

I moved the async example to the bottom. It basically just works as you'd expect, maybe we should remove it altogether.

Linking #13681

Everyone can use future annotations now. Also forward references are
the most type hinting popular question on Stack Overflow, so give a
little more detail.

The IO example should go with standard duck types.

I moved the async example to the bottom. It basically just works as
you'd expect, maybe we should remove it altogether.

Linking python#13681
Comment thread docs/source/cheat_sheet_py3.rst Outdated
Comment thread docs/source/cheat_sheet_py3.rst Outdated
Co-authored-by: Ethan Smith <ethan@ethanhs.me>

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hauntsaninja
hauntsaninja merged commit 10ae912 into python:master Mar 30, 2023
@hauntsaninja
hauntsaninja deleted the cheat-shee branch March 30, 2023 05:39
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