-
Union return types get suggested pretty often, but they usually are not the right thing for library stubs.
-
# The Bug
Pyright emits `reportMissingModuleSource` warnings for submodules implemented by the same native extension, even though:
- The Python sources for [prettypretty](https://github.com/appare…
-
I keep playing with protobuf’s [enumerations](https://protobuf.dev/programming-guides/proto3/#enum) which are encoded as 32b integers.
When compiled to Python and using this plugin, protobuf enums …
-
# Trending repositories for C#
1. [**microsoft / PowerToys**](https://github.com/microsoft/PowerToys)
__Windows system utilities to maximize productivity__
57 stars today…
-
Hello!
`pyright==1.1.379` seems to introduce a type error on the print statement below:
```python
from typing import Annotated, TypeVar
T = TypeVar("T")
Const = Annotated[T, "const"]
# _…
-
**Feature**
I would like to have TypeVars in my stubs that do not appear in my source code, but `stubtest` will flag the typevar as not present at runtime. Therefore, I decided to put them all in `…
-
However, you can trigger them by manually closing and re-opening.
This isn't an ideal state of things. There's a list of possible workarounds here: https://github.com/peter-evans/create-pull-reques…
-
**Feature**
Currently `Literal` doesn't accept another `Literal` or `Final[Literal]`. For example:
```python
from typing_extensions import Final, Literal
s: Final[Literal['ccc']] = 'ccc'
s1…
-
**Is your feature request related to a problem? Please describe.**
I recently changed some type aliases in a statically typed code base.
In some cases I use `isinstance` checks to narrow unions.
Wh…
-
## 🐛 Bug report
If I specify a default value for a `Path_fr` parameter, the validation ignores it. This is pretty weird because clearly the value is present and used if I don't turn on this pat…