Skip to content

Python 3.14.0a3: TypeError: Extra positional arguments provided #795

Closed

Description

@hroncok

Description

Hello. In Fedora, we try to build this package with Python 3.14.0a3.

We see test errors, on 0.19.0 as well as the current main branch. To reproduce, I did:

[msgspec (main)]$ uv venv --python=python3.14 venv3.14
[msgspec (main)]$ . venv/bin/activate
(venv3.14) [msgspec (main)]$ uv pip install .[test]
Using Python 3.14.0a3 environment at: venv3.14
Resolved 9 packages in 1.12s
   Built msgspec @ file:///home/.../msgspec
   Built msgpack==1.1.0
   Built pyyaml==6.0.2
Prepared 5 packages in 5.98s
Installed 9 packages in 8ms
 + attrs==24.3.0
 + iniconfig==2.0.0
 + msgpack==1.1.0
 + msgspec==0.19.0 (from file:///home/.../msgspec)
 + packaging==24.2
 + pluggy==1.5.0
 + pytest==8.3.4
 + pyyaml==6.0.2
 + tomli-w==1.1.0
(venv3.14) [msgspec (main)]$ pytest
============================= test session starts ==============================
platform linux -- Python 3.14.0a3, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/.../msgspec
configfile: setup.cfg
collected 5762 items / 3 errors / 2 skipped

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_struct.py _____________________
tests/test_struct.py:842: in <module>
    FrozenPoint(1, 2),
E   TypeError: Extra positional arguments provided
_____________________ ERROR collecting tests/test_toml.py ______________________
tests/test_toml.py:125: in <module>
    (ExStruct(1, "two"), ExStruct),
E   TypeError: Extra positional arguments provided
_____________________ ERROR collecting tests/test_yaml.py ______________________
tests/test_yaml.py:105: in <module>
    (ExStruct(1, "two"), ExStruct),
E   TypeError: Extra positional arguments provided
=========================== short test summary info ============================
ERROR tests/test_struct.py - TypeError: Extra positional arguments provided
ERROR tests/test_toml.py - TypeError: Extra positional arguments provided
ERROR tests/test_yaml.py - TypeError: Extra positional arguments provided
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 2 skipped, 3 errors in 0.40s =========================

Activity

  1. hroncok commented on Jan 30, 2025

    @hroncok
    ContributorAuthor

    Same problem with a4

  2. hroncok commented on Jan 30, 2025

    @hroncok
    ContributorAuthor

    Checking the 2 occurrences of "Extra positional arguments provided" in _core.c and modifying the error message I see now that the error is from this line:

    https://github.com/jcrist/msgspec/blob/dd965dce22e5278d4935bea923441ecde31b5325/msgspec/_core.c#L7294

  3. hroncok commented on Jan 30, 2025

    @hroncok
    ContributorAuthor
  4. hroncok commented on Jan 30, 2025

    @hroncok
    ContributorAuthor

    I was trying to bisect CPython to see what happened, but unfortunately, some cache interferes with my efforts and I am getting unstable results :(

  5. hroncok commented on Feb 4, 2025

    @hroncok
    ContributorAuthor
  6. edgarrmondragon commented on Apr 19, 2025

    @edgarrmondragon
    Contributor
  7. added a commit that references this issue on May 26, 2025
    89ecb0b
  8. added 2 commits that reference this issue on Sep 12, 2025
    7a4f426
    a7f4bc4
  9. ofek commented on Nov 24, 2025

    @ofek
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions