# Allowlist for `python -m mypy.stubtest msgspec`, run via scripts/stubtest.py.
#
# Each entry is a regex matched against the fully-qualified name of a stubtest
# finding. Entries here are known false positives or intentional gaps; real
# stub/runtime drift should be fixed rather than added here.
#
# This file holds entries that apply to every supported Python version. Entries
# that only surface from a given version onwards belong in
# stubtest_allowlist_py<major><minor>_plus.txt instead. stubtest runs without
# --ignore-unused-allowlist, so an entry that stops matching fails the run.

# msgspec.Struct subclasses get a per-class __init__ synthesized in C. stubtest
# can't see through it, so every Struct subtype reports an __init__ mismatch
# against the generic stub. Same story for the C types with a custom __new__.
msgspec\.Struct\.__init__
msgspec\.Meta\.__init__
msgspec\.Meta\.__new__
msgspec\.structs\.FieldInfo\.__init__
msgspec\.inspect\..*\.__init__
msgspec\.msgpack\.Ext\.__init__
msgspec\.msgpack\.Ext\.__new__
msgspec\.UnsetType\.__new__

# Private, intentionally unstubbed helper module.
msgspec\._utils\..*
