mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Make requirements-ci.txt reading cwd independent (#91771)
Discovered while running `test_typing.py` locally Pull Request resolved: https://github.com/pytorch/pytorch/pull/91771 Approved by: https://github.com/huydhn, https://github.com/ZainRizvi
This commit is contained in:
parent
a5f32f8978
commit
3b4e4d2b62
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ def get_correct_mypy_version():
|
|||
# there's probably a more elegant way to do this
|
||||
match, = re.finditer(
|
||||
r'mypy==(\d+(?:\.\d+)*)',
|
||||
Path('.circleci/docker/requirements-ci.txt').read_text(),
|
||||
(Path(__file__).parent.parent / '.circleci' / 'docker' / 'requirements-ci.txt').read_text(),
|
||||
)
|
||||
version, = match.groups()
|
||||
return version
|
||||
|
|
|
|||
Loading…
Reference in a new issue