Skip to content

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