EXPLOSION
EXPLOSION
### Summary A method that upgrades from a REST object to a Gateway object. ### Problem Some of the Gateway objects are better (see for example `is_large` on GatewayGuild, etc.)...
I believe `twilight-gateway`'s dependency on `twilight-http` is unnecessary most of the time, and thus for bots that do not interact with the HTTP API this brings in unneeded dependencies to...
### Summary Implements message and slash checks on components ### Checklist - [x] I have run `nox` and all the pipelines have passed. - [x] I have made unittests according...
**Bug Report** I expect `n = Callable[P, int]` to work, or at least `n: TypeAlias = Callable[P, int]` **To Reproduce** ```py from typing import ParamSpec, Callable, TypeAlias P = ParamSpec("P")...
A TODO I found while looking at something else got me down this rabbit hole, and I noticed mypy's subpar performance in these two cases. Short descriptions from *before* I...
- Fixes https://github.com/python/mypy/issues/15037 - Fixes https://github.com/python/mypy/issues/15065 - Fixes https://github.com/python/mypy/issues/15073 - Fixes https://github.com/python/mypy/issues/15388 - Fixes https://github.com/python/mypy/issues/15086 Yet another part of https://github.com/python/mypy/pull/14903 that's finally been extracted!
**Bug Report** When I assign `typing.final` to another name, it stops decorating things as final. The usecase for this is to add runtime behavior to my final classes by making...
Resubmitting #11617 cause that was pre-Blackened mypy. Also, that PR probably won't get any eyes anymore. This fixes #9023. I still need to add a test about this, unfortunately.
This makes `.value` not accidentally prune out one of its literals! Alternatively (I just realized this now) we could just return the type without `.last_known_value`. I can switch to that...
This makes the enum plugin (e.g. `.name` and `.value`) work on enum `Literal`s. Fixes https://github.com/python/mypy/issues/14092