[issue46801] test_typing emits deprecation warnings

Irit Katriel report at bugs.python.org
Sat Feb 19 14:36:56 EST 2022


New submission from Irit Katriel <iritkatriel at gmail.com>:

======================================================================
ERROR: test_typeddict_create_errors (test.test_typing.TypedDictTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_typing.py", line 4589, in test_typeddict_create_errors
    TypedDict('Emp', _fields={'name': str, 'id': int})
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/typing.py", line 2609, in TypedDict
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: The kwargs-based syntax for TypedDict definitions is deprecated in Python 3.11, will be removed in Python 3.13, and may not be understood by third-party type checkers.

======================================================================
ERROR: test_typeddict_errors (test.test_typing.TypedDictTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_typing.py", line 4602, in test_typeddict_errors
    TypedDict('Hi', x=1)
    ^^^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/typing.py", line 2609, in TypedDict
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: The kwargs-based syntax for TypedDict definitions is deprecated in Python 3.11, will be removed in Python 3.13, and may not be understood by third-party type checkers.

----------
components: Tests
messages: 413558
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: test_typing emits deprecation warnings
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46801>
_______________________________________


More information about the Python-bugs-list mailing list