项目文件夹

文件
T
Anish Athalye 570ecbdcb8 Switch to typing.Self (#489)
PEP 673 [1] introduces `typing.Self` as a simple way to annotate methods
that return an instance of their class. This patch adopts `typing.Self`.

Because this is only included in Python 3.11, for backwards
compatibility, this patch adds typing-extensions [2], an
officially-supported module that is designed for enabling use of new
type system features on older Python versions.

We don't want to make typing-extensions a runtime dependency, so we add
a guard and only import it when we're `TYPE_CHECKING`.

[1]: https://peps.python.org/pep-0673/
[2]: https://pypi.org/project/typing-extensions/

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2023-02-19 09:55:41 -05:00

18 行
219 B
Plaintext

# Python dependencies for development
coverage != 6.3, != 6.3.*
mypy
pandas-stubs
pre-commit
psutil
pytest
pytest-cov
pytest-lazy-fixture
requests
scipy
skorch
tensorflow
torch
torchvision
typing-extensions>=4.1.1
wget