pytorch/.github
Nikita Shulga 5837e95d30 [Reland] Update mypy to 1.4.1 (#105227)
This PR re-lands
- [Typing] Fix PEP 484 Violation (#105022)
- Update mypy to 1.4.1 (#91983)

That were reverted due to the conflict with internal source repo.

Mostly fixes for PEP-484 violation (i.e. when default arg is set to None, but type is not annotated as optional)
Plus few real fixes:
  - Add missing `_get_upgraders_entry_map` to `torch/_C/__init__.pyi`
  - Add missing return statement to `torch._export. deserialize_graph`
  - Fix error message in `torch.ao.ns.fx.weight_utils.get_lstm_mod_weights`
  - Add assert it `torch/optim/optimizer.py` that Optional list is not None
TODO (in followup PR):
  - Fix erroneous `isinstance` check in `torch/ao/quantization/_pt2e/qat_utils.py`

Unrelated, to bypass CI failures due to the gcc9 dependency update in Ubuntu-18.04:
- Add hack to squash older libstdc++ from conda environment in favor one from OS to `.ci/docker/install_conda.sh`
- Update bazel cuda builds to focal, as with libstdc++-6.0.32 bazel builds loose the ability to catch exceptions (probably because they link with cupti statically, but I could not found where it is done)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105227
Approved by: https://github.com/atalman, https://github.com/albanD, https://github.com/Skylion007
2023-07-15 20:30:20 +00:00
..
actions Adding aarch64 wheel CI workflows (#104109) 2023-06-29 18:58:43 +00:00
ci_commit_pins Update torchbench.txt to include SAM (#105222) 2023-07-14 18:37:30 +00:00
ISSUE_TEMPLATE Remove ci: sev label and details from ci-sev.md tempalte (#100504) 2023-05-03 00:51:06 +00:00
requirements Re-land: Turn translation validation on for tests and accuracy runs by default. (#104467) 2023-07-05 19:01:50 +00:00
scripts Use GitHub REST API to get the merge base commit SHA (#105098) 2023-07-14 04:25:45 +00:00
templates [nightly] Fix macos nightly conda builds due to miniconda update (#105226) 2023-07-14 21:03:36 +00:00
workflows [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
actionlint.yaml Adding aarch64 wheel CI workflows (#104109) 2023-06-29 18:58:43 +00:00
auto_request_review.yml With Chillee's permission, add me to all Chillee's diffs (#97632) 2023-03-27 21:10:49 +00:00
ISSUE_TEMPLATE.md Rename default branch to main (#99210) 2023-04-16 18:48:14 -07:00
labeler.yml Add some more files to ciflow/inductor (#105112) 2023-07-13 14:44:42 +00:00
merge_rules.yaml Add onnx to common_methods_invocations.py approvers (#104530) 2023-07-03 16:43:22 +00:00
PULL_REQUEST_TEMPLATE.md
pytorch-circleci-labels.yml
pytorch-probot.yml Improved configuration naming for repetitive workflows (#98496) 2023-04-06 14:14:16 +00:00
regenerate.sh
requirements-gha-cache.txt Bump requests from 2.26 to 2.31.0 in /.github (#102057) 2023-05-25 21:06:44 +00:00