Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mypy's disallow_any_explicit flag. #3121

Merged
merged 33 commits into from
Nov 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6e91b75
Enable mypy's `disallow_any_explicit` flag.
CoolCat467 Oct 27, 2024
feeccf1
Fix various things after reviewing all changes
CoolCat467 Oct 27, 2024
569bc37
Do not use faster mypy cache on pypy
CoolCat467 Oct 27, 2024
deb1c13
Merge remote-tracking branch 'origin/main' into enable-disallow_any_e…
CoolCat467 Oct 27, 2024
521c1b7
Try to get rid of more `Any`s
CoolCat467 Oct 27, 2024
55964ad
Get rid of a bunch more `Any`s and resolve mypy issues
CoolCat467 Oct 28, 2024
e888514
Match other TypeVarTuple usage
CoolCat467 Oct 28, 2024
30db0d8
Mark variable as nonlocal
CoolCat467 Oct 28, 2024
7707361
Cast asyncio run in loop to be InHost
CoolCat467 Oct 28, 2024
e99b69f
Handle case where `names` does not exist in node for some reason
CoolCat467 Oct 28, 2024
aee4a77
Hopefully fix jedi issue
CoolCat467 Oct 28, 2024
e157589
Check the hashes are the same
A5rocks Oct 28, 2024
62f89fa
Get the hash glob makes
A5rocks Oct 28, 2024
ca48ef6
Fix inputs to glob.hashFiles
A5rocks Oct 28, 2024
28b4abc
Remove testing hashes
A5rocks Oct 28, 2024
a1e4916
Apply requested changes from code review
CoolCat467 Oct 28, 2024
c3c0a28
Code review suggestions
CoolCat467 Oct 28, 2024
63353f4
Fix type issue
CoolCat467 Oct 28, 2024
69e60a5
Fix cffi type issues again
CoolCat467 Oct 28, 2024
25ecf1e
Merge branch 'main' into enable-disallow_any_explicit
CoolCat467 Oct 28, 2024
2bc0da3
Use correct `CData`
CoolCat467 Oct 28, 2024
0f999b8
Fix cast again
CoolCat467 Oct 28, 2024
50adccb
Clarify comments and get rid of more `Any`s
CoolCat467 Oct 30, 2024
3a320c3
Update src/trio/_tests/test_socket.py
CoolCat467 Oct 30, 2024
03f1c4e
Apply suggestions from code review
CoolCat467 Oct 30, 2024
33f1caa
Apply suggestions from code review
CoolCat467 Oct 30, 2024
854c5cd
Update src/trio/_threads.py
CoolCat467 Oct 30, 2024
bcd3f54
Improve type annotations
CoolCat467 Oct 30, 2024
7e719a8
Merge branch 'main' into enable-disallow_any_explicit
CoolCat467 Oct 30, 2024
ee0322a
Forgot `type` and fix more type issues
CoolCat467 Oct 30, 2024
9005f98
Add typing to `orig_getaddrinfo`
CoolCat467 Oct 30, 2024
c480449
Add full typing for `_responses` and `record`
CoolCat467 Oct 30, 2024
ba24f74
Fix type issues
CoolCat467 Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/trio/_threads.py
Co-authored-by: John Litborn <11260241+jakkdl@users.noreply.github.com>
  • Loading branch information
CoolCat467 and jakkdl authored Oct 30, 2024
commit 854c5cd83757b57fb370072c8728b4934f16703a
3 changes: 1 addition & 2 deletions src/trio/_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ class ThreadPlaceholder:

# Types for the to_thread_run_sync message loop
@attrs.frozen(eq=False, slots=False)
# Explicit "Any" is not allowed
# Explicit .../"Any" is not allowed
class Run(Generic[RetT]): # type: ignore[misc]
# Explicit "Any" is not allowed
afn: Callable[..., Awaitable[RetT]] # type: ignore[misc]
args: tuple[object, ...]
context: contextvars.Context = attrs.field(
Expand Down
Loading