Skip to content

Catch a deprecation warning on Python 3.13 #331

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

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Feb 13, 2024

Suppresses the following deprecation warning, but asserts its presence:

test_typing_extensions.py:4003: DeprecationWarning: Failing to pass a value for the 'fields' parameter is deprecated and will be disallowed in Python 3.15. To create a TypedDict class with 0 fields using the functional syntax, pass an empty dictionary, e.g. `Emp = TypedDict('Emp', {})`.
  Emp = TypedDict("Emp", name=str, id=int)

@srittau srittau merged commit 05ffab5 into python:main Feb 13, 2024
@srittau srittau deleted the py3.13-warning branch February 13, 2024 10:28
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.

2 participants