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

dhcp: fix typing #1300

Merged
merged 1 commit into from
Feb 25, 2025
Merged

dhcp: fix typing #1300

merged 1 commit into from
Feb 25, 2025

Conversation

etene
Copy link
Collaborator

@etene etene commented Feb 25, 2025

No description provided.

@etene etene linked an issue Feb 25, 2025 that may be closed by this pull request
@etene etene marked this pull request as ready for review February 25, 2025 12:20
callback=lambda: asyncio.create_task(
callback(signal=signal) # type: ignore[arg-type]
),
callback=lambda: asyncio.create_task(callback(signal=signal)),
Copy link
Owner

Choose a reason for hiding this comment

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

Oh, good.

Thanks.

@@ -49,7 +47,7 @@ def arm(self, lease: Lease, **callbacks: AsyncCallback) -> None:
loop = asyncio.get_running_loop()

for timer_name, async_callback in callbacks.items():
self._reset_timer(timer_name) # type: ignore[arg-type]
self._reset_timer(timer_name)
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure if it is a good idea to add some CI test that raises warnings if there are any inline linter overrides.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

as long as it does not make the CI fail, i see no issue with it !

Copy link
Owner

Choose a reason for hiding this comment

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

If it doesn't break the CI, what's the point in having it there? :))) But you're right, it might be a bit too much. Oke, thanks.

@svinota svinota merged commit 1a12943 into master Feb 25, 2025
22 checks passed
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.

/pyroute2/dhcp/ mypy check fails
2 participants