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

Typing tweaks in scheduler.py #8551

Merged
merged 1 commit into from Mar 5, 2024
Merged

Typing tweaks in scheduler.py #8551

merged 1 commit into from Mar 5, 2024

Conversation

crusaderky
Copy link
Collaborator

@crusaderky crusaderky commented Mar 4, 2024

This PR gets rid of all of these mypy output lines

distributed/scheduler.py:1234: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]

@crusaderky crusaderky requested a review from fjetter as a code owner March 4, 2024 16:04
@crusaderky crusaderky self-assigned this Mar 4, 2024
if hosts is not None:
for host in hosts:
dh: dict = self.host_info.get(host) # type: ignore
dh = self.host_info.get(host)
if dh is not None:
workers.extend(dh["addresses"])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed antipattern where the function alters its parameter

Copy link
Contributor

github-actions bot commented Mar 4, 2024

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    27 files  ±0      27 suites  ±0   10h 0m 46s ⏱️ + 3m 11s
 4 048 tests ±0   3 935 ✅ ±0    110 💤 ±0  3 ❌ ±0 
50 828 runs  ±0  48 528 ✅  - 2  2 295 💤 ±0  5 ❌ +2 

For more details on these failures, see this check.

Results for commit 8370461. ± Comparison against base commit c8974d6.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@milesgranger milesgranger left a comment

Choose a reason for hiding this comment

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

Good for me, thanks @crusaderky!

@crusaderky crusaderky force-pushed the cosmetic branch 3 times, most recently from 4725e9a to 985c369 Compare March 5, 2024 12:55
@crusaderky crusaderky merged commit bec6ea5 into dask:main Mar 5, 2024
27 of 34 checks passed
@crusaderky crusaderky deleted the cosmetic branch March 5, 2024 14:38
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.

None yet

2 participants