Skip to content

repo: which(..., required=True)#3421

Open
haampie wants to merge 1 commit intodevelopfrom
hs/typing/which
Open

repo: which(..., required=True)#3421
haampie wants to merge 1 commit intodevelopfrom
hs/typing/which

Conversation

@haampie
Copy link
Member

@haampie haampie commented Feb 14, 2026

  • which("x") returns Optional[Executable]
  • which("x", required=True) returns Executable

Before:

% mypy --check-untyped-defs  | wc -l
    1958

After:

% mypy --check-untyped-defs  | wc -l
    1329

* `which("x")` returns `Optional[Executable]`
* `which("x", required=True)` returns `Executable`

Signed-off-by: Harmen Stoppels <harmenstoppels@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant