Skip to content

Conversation

@int3
Copy link
Contributor

@int3 int3 commented Nov 15, 2023

Stack from ghstack (oldest at bottom):

Since MYPYNOFOLLOW is about to turn on import following, there's no
reason to keep test_utils.py in the MYPYNOFOLLOW config. Moreover, I'm
not sure it still takes 10 minutes to typecheck this file; adding it to
the MYPY config takes lintrunner --take MYPY --all-files from 53s to
57s on my machine, which is substantial but not horrible. I guess we'll
see how it fares on CI.

(Note that we cannot simply merge MYPY and MYPYNOFOLLOW because the
latter config turns on disallow_any_generics and so is in that sense
stricter than the MYPY config.)

Since MYPYNOFOLLOW is about to turn on import following, there's no
reason to keep test_utils.py in the MYPYNOFOLLOW config. Moreover, I'm
not sure it still takes 10 minutes to typecheck this file; adding it to
the MYPY config takes `lintrunner --take MYPY --all-files` from 53s to
57s on my machine, which is substantial but not horrible. I guess we'll
see how it fares on CI.

(Note that we cannot simply merge MYPY and MYPYNOFOLLOW because the
latter config turns on `disallow_any_generics` and so is in that sense
stricter than the MYPY config.)

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Nov 15, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 15, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/113745

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7d3a33b with merge base 6f44090 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

int3 added a commit that referenced this pull request Nov 15, 2023
Since MYPYNOFOLLOW is about to turn on import following, there's no
reason to keep test_utils.py in the MYPYNOFOLLOW config. Moreover, I'm
not sure it still takes 10 minutes to typecheck this file; adding it to
the MYPY config takes `lintrunner --take MYPY --all-files` from 53s to
57s on my machine, which is substantial but not horrible. I guess we'll
see how it fares on CI.

(Note that we cannot simply merge MYPY and MYPYNOFOLLOW because the
latter config turns on `disallow_any_generics` and so is in that sense
stricter than the MYPY config.)

ghstack-source-id: 0a9b3a8
Pull Request resolved: #113745
@int3 int3 requested a review from clee2000 November 15, 2023 08:50
@int3
Copy link
Contributor Author

int3 commented Nov 15, 2023

Doesn't look like the lintrunner job on CI is taking longer than usual

@int3 int3 marked this pull request as ready for review November 15, 2023 17:36
Copy link
Contributor

@clee2000 clee2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine other than adding inductor?

files =
torch/_dynamo,
test/test_utils.py
torch/_inductor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, why did inductor get added here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I just snuck this one-line change along the way. MYPYNOFOLLOW is already typechecking all the inductor files in the .lintrunner.toml config, so I figured I should add it here as well. tbh I'm not sure when this files config setting is used directly since lintrunner passes in an explicit list of files to typecheck. (The docs for files says it's "A comma-separated list of paths which should be checked by mypy if none are given on the command line.")

@int3
Copy link
Contributor Author

int3 commented Nov 15, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 15, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/int3/92/head branch November 19, 2023 15:27
pytorchmergebot pushed a commit that referenced this pull request Aug 9, 2024
A missing comma in the file list currently leads to errors when running mypy, introduced in #113745

Fixes #133096

Pull Request resolved: #133097
Approved by: https://github.com/Skylion007, https://github.com/malfet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants