8000 Add missing type annotations to `_core/_mock_clock.py` by CoolCat467 · Pull Request #2740 · python-trio/trio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing type annotations to _core/_mock_clock.py #2740

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

Merged
merged 4 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion trio/_core/_mock_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def deadline_to_sleep_time(self, deadline: float) -> float:
else:
return 999999999

def jump(self, seconds) -> None:
def jump(self, seconds: float) -> None:
"""Manually advance the clock by the given number of seconds.

Args:
Expand Down
11 changes: 5 additions & 6 deletions trio/_tests/verify_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"warningCount": 0
},
"typeCompleteness": {
"completenessScore": 0.9170653907496013,
"completenessScore": 0.9186602870813397,
"exportedSymbolCounts": {
"withAmbiguousType": 0,
"withKnownType": 575,
"withUnknownType": 52
"withKnownType": 576,
"withUnknownType": 51
},
"ignoreUnknownTypesFromImports": true,
"missingClassDocStringCount": 1,
Expand Down Expand Up @@ -46,12 +46,11 @@
],
"otherSymbolCounts": {
"withAmbiguousType": 3,
"withKnownType": 600,
"withUnknownType": 63
"withKnownType": 602,
"withUnknownType": 61
},
"packageName": "trio",
"symbols": [
"trio._core._mock_clock.MockClock.jump",
"trio._core._run.Nursery.start",
"trio._core._run.Nursery.start_soon",
"trio._core._run.TaskStatus.__repr__",
Expand Down
0