This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_typing emits deprecation warnings
Type: Stage: resolved
Components: Tests Versions: Python 3.11
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel
Priority: normal Keywords: patch

Created on 2022-02-19 19:36 by iritkatriel, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31433 closed iritkatriel, 2022-02-19 19:38
Messages (1)
msg413558 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-02-19 19:36
======================================================================
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.
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 90957
2022-02-19 19:43:05iritkatrielsetstatus: open -> closed
resolution: duplicate
stage: patch review -> resolved
2022-02-19 19:38:47iritkatrielsetkeywords: + patch
stage: patch review
pull_requests: + pull_request29568
2022-02-19 19:36:56iritkatrielcreate