FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] Improve assert_type phrasing (GH-104081) by miss-islington · Pull Request #104084 · python/cpython · GitHub

/ cpython Public

[3.11] Improve assert_type phrasing (GH-104081) - #104084

Merged
AlexWaygood merged 1 commit into
python:3.11from
miss-islington:backport-82ba6ce-3.11
May 2, 2023
Merged

[3.11] Improve assert_type phrasing (GH-104081)#104084
AlexWaygood merged 1 commit into
python:3.11from
miss-islington:backport-82ba6ce-3.11

Conversation

miss-islington commented May 2, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

I'd like to make the fact that this does nothing at runtime
really obvious, since I suspect this is unintuitive for users who are
unfamiliar with static type checking.

I thought of this because of
https://discuss.python.org/t/add-arg-check-type-to-types/26384
wherein I'm skeptical that the user really did want assert_type.
(cherry picked from commit 82ba6ce)

Co-authored-by: Shantanu 12621235+hauntsaninja@users.noreply.github.com


📚 Documentation preview 📚: https://cpython-previews--104084.org.readthedocs.build/

I'd like to make the fact that this does nothing at runtime
really obvious, since I suspect this is unintuitive for users who are
unfamiliar with static type checking.

I thought of this because of
https://discuss.python.org/t/add-arg-check-type-to-types/26384
wherein I'm skeptical that the user really did want `assert_type`.
(cherry picked from commit 82ba6ce)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
AlexWaygood merged commit 3e7e50e into python:3.11 May 2, 2023
miss-islington deleted the backport-82ba6ce-3.11 branch May 2, 2023 07:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL