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

Small refactor to fix some lint errors #571

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

Moustachauve
Copy link
Contributor

I'm starting to read the code and I see a lot of underlined code. This annoys me slightly, so I'll make a few small PR like this to try to tackle some of it :)

Starting small with switch.py:

  • Add typing on device variable so that the properties can be referred to properly.
  • Remove the None type of HiloEntity (in init.py:790). I feel like this should never be None? I tested it and there's no issue in my specific environment, this might require someone else to test it. This was needed otherwise the linter would complain that a null check need to be executed before a lot of things (and its right). Best make it required if we can.

There was also some changes in init.py that are being applied automatically (aggressively, I like it) by the dev container setup.

@Moustachauve Moustachauve marked this pull request as draft February 6, 2025 17:46
@Moustachauve Moustachauve marked this pull request as ready for review February 7, 2025 03:39
@ic-dev21 ic-dev21 merged commit a295b48 into dvd-dev:main Feb 10, 2025
3 checks passed
@Moustachauve Moustachauve deleted the debug-info branch February 10, 2025 05:13
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.

2 participants