-
```py
from typing import Final
foo: Final[int | None] = 1
if foo is not None:
def bar() -> None:
reveal_type(foo) # note: Revealed type is "Union[builtins.int, None]"
```
https:…
-
```py
from typing import _T
class A:...
class B(A):
a: int
class C(A):
a: int
def safe(it: _T | None) -> _T:...
b_or_c: B | C
value = safe(b_or_c)
reveal_type(value) #A, sh…
-
The initial work we did to use ESDoc for our documentation was good, but it's not ideal for all of our use cases (like writing guides, describing caveats, etc). I'm currently working with the Ember Le…
-
Describe the new feature
--------------------------
Is there any way to build/install package stubs for _pulp_?
I was running static type check analysis with `mypy` but these seem missing:
…
-
Hey, I have seen recommendations to use this package. I'm thinking If there is a comparison between this/style and the vanilla style it will help me decide on whether I should adopt this project.
-
```py
from typing import Callable, ParamSpec
P = ParamSpec("P")
class Foo:
def __call__(self) -> None:
...
def foo(fn: Callable[P, None]) -> None:
if isinstance(fn, Fo…
-
**Issue type:**
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
**Database system/driver:**
[ ] `cordova`
[ ] `mongodb`
[ ] `mssql`
[ ] `mysql` / `mariadb`
[ ] …
-
### Motivation: Why do you think this is important?
Currently, the rate of development of both ML DevOps and areas like GenAI mean that they are way too many papers and technologies for a single pe…
-
Consider an op like `arange` which is able to support the following two signatures using python arg parser
https://github.com/pytorch/pytorch/blob/8d0cbce0696e76c9e4c929c24c0331df25125b40/torch/csr…
-
If I use a [descriptor](https://docs.python.org/3/howto/descriptor.html) as at the end of this description, there are two problems with how the generated documentation for `Example.count` looks like:
…