You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stubtest regression for NewType in compiled extensions #19877
but stubtest doesn't like that for a different reason:
$ pip install --no-build-isolation . && stubtest newtype --ignore-disjoint-bases
error: newtype.newtype.FooType is not a type
Stub: in file .../venv/lib64/python3.13/site-packages/newtype/newtype.pyi:3
<TypeInfo newtype.newtype.FooType>
Runtime:
def (object, /)
$ pip install --no-build-isolation . && stubtest newtype --ignore-disjoint-bases
error: newtype.newtype.FooType is not a type
Stub: in file .../venv/lib64/python3.13/site-packages/newtype/newtype.pyi:3
<TypeInfo newtype.newtype.FooType>
Runtime:
def (x, /)
The original issue bisects to 13fa6c3 so I'm not sure if it's a problem in the int type hints or something else, though it would also be nice if the second option above worked, too.
Activity
QuLogic commentedon Sep 18, 2025
In this branch, I have tried changing the runtime implementation into what's effectively an identity
lamdbato match the docs ofNewType:but stubtest doesn't like that for a different reason:
As another option, I tried changing the runtime implementation to use
typing.NewTypealso:but
stubteststill doesn't like it:QuLogic commentedon Sep 18, 2025
The original issue bisects to 13fa6c3 so I'm not sure if it's a problem in the
inttype hints or something else, though it would also be nice if the second option above worked, too.MNT: Ignore differing stub for GlyphIndexType
MNT: Ignore differing stub for GlyphIndexType
MNT: Ignore differing stub for GlyphIndexType
MNT: Ignore differing stub for GlyphIndexType