-
### Description
I'm trying to add typing to some code I use with `Quantity` input.ouput. Using the `u.quantity_input` decorator errors with `mypy` though, complaining that the decorat…
-
### Python -VV
```shell
Python 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0]
```
### Pip Freeze
```shell
kanishk@anarch[~/mistral] > pip freeze
annotated-types==0.7.0
appdirs==1.4.4
asttoke…
-
**Describe the bug**
If a variable is defined with different incompatible units in different modules, this following error message comes up. The problem is that the error message says it's the 'val' …
-
**Describe the solution you'd like**
1. Python 3.9+ can use f-strings instead of `str().format()` and should improve performance slightly
2. python 3.9+ can use type-hinting
**Describe alternatives y…
-
In the past, the following construction would convince PyCharm that it should pull [parameter info](https://www.jetbrains.com/pycharm/guide/tips/parameter-info/) from the given class as if it were a v…
-
Python 3.x has the [annotations](http://www.python.org/dev/peps/pep-3107/) feature.
If you can support it instead of comments for python 3.x it will make the code much more readable.
-
### 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…
-
I love the language design so far, especially with type annotations fixed to be in `name: Type` form.
But one thing, that I could not find in the docs nor in todo list, is the [decorators](https://…
sirex updated
3 years ago
-
I am trying to change my already heavily typed Python code to run in Cython. For that, it felt useful to put `@cython.ccall` everywhere and see what happens.
I found out that Cython does not unders…
-
With the following snippet:
```python
from dataclasses import dataclass
from typing import Generic, TypeVar
T = TypeVar('T')
@dataclass
class DebugVisitor(Generic[T]):
tree_depth: int =…