Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-117764: Add docstrings and signatures for the types of None, Ellipsis and NotImplemented#117813

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedApr 12, 2024
edited by bedevere-appbot
Loading

@serhiy-storchakaserhiy-storchaka merged commit2d3d9b4 intopython:mainApr 12, 2024
@serhiy-storchakaserhiy-storchaka deleted the singleton-types-signatures branchApril 12, 2024 12:45
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 17, 2024
browniebroke added a commit to browniebroke/django-rest-framework that referenced this pull requestSep 10, 2024
Python 3.13 introduced docstrings for None:python/cpython#117813In Python 3.12, this is an empty string:``` ➜ python3.12Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__>>>```In Python 3.13, it's no longer empty:``` ➜ python3.13Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__'The type of the None singleton.'>>>```Adding a check in the inspector that get the view description out the view function docstring to cath this edge case.
browniebroke added a commit to browniebroke/django-rest-framework that referenced this pull requestSep 10, 2024
Python 3.13 introduced docstrings for None:python/cpython#117813In Python 3.12, this is an empty string:``` ➜ python3.12Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__>>>```In Python 3.13, it's no longer empty:``` ➜ python3.13Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__'The type of the None singleton.'>>>```Adding a check in the inspector that get the view description out the view function docstring to cath this edge case.
browniebroke added a commit to browniebroke/django-rest-framework that referenced this pull requestSep 10, 2024
Python 3.13 introduced docstrings for None:python/cpython#117813In Python 3.12, this is an empty string:``` ➜ python3.12Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__>>>```In Python 3.13, it's no longer empty:``` ➜ python3.13Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__'The type of the None singleton.'>>>```Adding a check in the inspector that get the view description out the view function docstring to catch this edge case.
auvipy pushed a commit to encode/django-rest-framework that referenced this pull requestSep 11, 2024
* Add support for Python 3.13* Fix extracting tox env with -dev Python versions* Fix view description inspection in Python 3.13Python 3.13 introduced docstrings for None:python/cpython#117813In Python 3.12, this is an empty string:``` ➜ python3.12Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__>>>```In Python 3.13, it's no longer empty:``` ➜ python3.13Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> d = None>>> d.__doc__'The type of the None singleton.'>>>```Adding a check in the inspector that get the view description out the view function docstring to catch this edge case.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp