[stdlib] update `ctypes.CField`
docs: https://docs.python.org/3/library/ctypes.html#ctypes.CField
As far as I can see, this class was only added in 3.14 "for real". So we need to distinguish between those cases.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
I need help with resolving the remaining errors
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
It appears that the attribute name type is causing the error. If I rename it to _type_, it works fine.
See: https://github.com/python/typeshed/pull/15057
I think it's best to have to complete separate _CField classes, one for 3.14+ and one for < 3.14. This way we can keep the @type_check_only decorator and it could alleviate some of the problems.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉