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
While waiting for the pr ti be merged, one can use str types like this: 'custom.Context' instead of custom.Context. The type checkers and ides should still consider it the same way.
Summary
Using
bridge.Context
in a bridge command raises aTypeError
acting like other invalid typehints even though specified as a feature in #2106Reproduction Steps
Use a bridge command with the context type hint
ctx: bridge.Context
Minimal Reproducible Code
Expected Results
bridge.Context
to pass pycord's type hinting checksActual Results
bridge.Context
fails pycord's type hinting checks which raisesTypeError: Invalid usage of typing.Union
Traceback associated:
Intents
all
System Information
Checklist
Additional Context
Also neither does
Union[bridge.BridgeExtContext, bridge.BridgeApplicationContext]
passes pycord's context type hint checksThe text was updated successfully, but these errors were encountered: