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
Use direct `TypeVar`/`ParamSpec` only when required by syntax limitations. In particular, keep direct `TypeVar(..., default=...)` for type parameter defaults because default values in type parameter syntax require Python 3.13+.
115
+
116
+
Name PEP 695 parameters without leading underscores (`T`, `P`). If a direct `TypeVar`/`ParamSpec` is required, use underscored variables such as `_T` or `_P`.
Use direct `TypeVar`/`ParamSpec` only when the 3.12 type parameter syntax cannot express the type. The most common required case in this repository is `default=`, because type parameter defaults are only syntax-supported in Python 3.13+:
Use direct `TypeVar`/`ParamSpec` only when the 3.12 syntax cannot express the type. The main required case is a type parameter default, because default values for type parameters are only supported by syntax in Python 3.13+:
- PEP 695 syntax: use non-underscored names (`T`, `P`), not `_T`/`_P`
63
+
- Direct `TypeVar`/`ParamSpec`: keep underscored variables (`_T`, `_P`)
35
64
36
65
**⚠️ Updating Stubs**: For stub updates or new module additions, use the `socketio-stub-updater` skill located in `.agents/skills/socketio-stub-updater/SKILL.md`
0 commit comments