FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't ignore errors in files passed on the command line by JukkaL · Pull Request #14060 · python/mypy · GitHub

Repository navigation

Don't ignore errors in files passed on the command line - #14060

Merged
JukkaL merged 4 commits into
masterfrom
fix-false-negatives
Nov 10, 2022
Merged

JukkaL merged 4 commits into
masterfrom
fix-false-negatives

Conversation

JukkaL commented Nov 10, 2022 •
edited
Loading

Copy link
Copy Markdown
Collaborator

#13768 had a bug so that errors were sometimes silenced in files that were under a
directory in sys.path. sys.path sometimes includes the current working directory,
resulting in no errors reported at all. Fix it by always reporting errors if a file was passed
on the command line.

When using import following errors can still be ignored, which is questionable, but
this didn't change recently so I'm not addressing it here.

Fixes #14042.

that were under a directory in `sys.path`, which sometimes includes
the current working directory, resulting in no errors reported at
all.

Fixes #14042.

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LG

JukkaL merged commit 5cc1439 into master Nov 10, 2022
JukkaL deleted the fix-false-negatives branch November 10, 2022 17:37
svalentin pushed a commit that referenced this pull request Nov 10, 2022
#13768 had a bug so that errors were sometimes silenced in files that
were under a directory in `sys.path`. `sys.path` sometimes includes the 
current working directory, resulting in no errors reported at all. Fix it by 
always reporting errors if a file was passed on the command line (unless
*explicitly* silenced).

When using import following errors can still be ignored, which is 
questionable, but this didn't change recently so I'm not addressing it 
here.

Fixes #14042.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mypy 0.990 shows no errors when passing source directory as absolute path

2 participants


Back | FazBrowse Home | New Git URL