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

ruff: Address TCH rule #113

Merged
merged 1 commit into from
Apr 29, 2023
Merged

ruff: Address TCH rule #113

merged 1 commit into from
Apr 29, 2023

Conversation

Ruchip16
Copy link
Member

The TCH check suggests to move the import defined at top-level into a type-checking block and ensures to avoid importing unnecessary modules at runtime, while still providing type hints to our code.

@Ruchip16 Ruchip16 added the bug label Apr 29, 2023
@Ruchip16 Ruchip16 self-assigned this Apr 29, 2023
@Ruchip16 Ruchip16 requested a review from a team as a code owner April 29, 2023 07:48
@Ruchip16 Ruchip16 requested review from cidrblock, priyamsahoo, shatakshiiii and ssbarnea and removed request for a team April 29, 2023 07:48
@ssbarnea ssbarnea changed the title Add TCH ruff check ruff: Address TCH rule Apr 29, 2023
@ssbarnea ssbarnea merged commit 63ac634 into ansible:main Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants