-
Using `hashlib.file_digest` with a file object obtained via `pathlib.Path.open` failed to typecheck with a protocol compatibility error:
```
src/create_bundles.py:223: error: Argument 1 to "file_d…
-
-
Reproducer from inside a typeshed clone:
```pycon
>>> import typeshed_client
>>> from pathlib import Path
>>> context = typeshed_client.finder.get_search_context(typeshed=Path("stdlib"), search_…
-
mypyc complains if `__module__` is accessed on the class.
```python
# test_mypyc.py
class Foo:
def __repr__(self) -> str:
return f""
if __name__ == "__main__":
print(f"{Foo…
-
When using `--custom-typeshed-dir`, I'm intentionally indicating that I'm using my own edited version of typeshed. It would be nice for typeshed warnings to be surfaced under these conditions.
-
https://github.com/python/typeshed/blob/master/CONTRIBUTING.md
komuw updated
3 years ago
-
I just updated MyPy in Jinja, and had to ignore the return type of `sum` in one of my functions because MyPy started saying it wasn't compatible with the `TypeVar` I was using. https://github.com/pall…
-
It would be great if you could add your numpy stubs to `Typeshed`.
https://github.com/python/typeshed/tree/master/stdlib/2and3
You have already written the most useful parts of the numpy stub a…
-
Quick background: [typeshed](https://github.com/python/typeshed) is a collection of PEP 484 type hint files for Python's standard library as well as third-party libraries that don't ship their own typ…
-
I have code such as this:
```py
now_timestamp = datetime.utcnow()
```
The deprecation method reads:
```
The method "utcnow" in class "datetime" is deprecated
Use timezone-aware objects to rep…