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

Fix type check to use isinstance() #2869

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Conversation

heplesser
Copy link
Contributor

Flake8 has recently started to complain about a type check in PyNEST (https://github.com/nest/nest-simulator/actions/runs/5786174318/job/15680357178#step:5:12). This PR changes the check to use isinstance() as the proper way of testing the type.

I mark this PR as Critical since all CI testing will fail until it is fixed.

@heplesser heplesser added T: Bug Wrong statements in the code or documentation S: Critical Needs to be addressed immediately I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Aug 8, 2023
@heplesser heplesser added this to In progress in PyNEST via automation Aug 8, 2023
@heplesser heplesser merged commit 4229988 into nest:master Aug 8, 2023
20 checks passed
PyNEST automation moved this from In progress to Done Aug 8, 2023
@heplesser heplesser deleted the fix-flake8 branch August 8, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Critical Needs to be addressed immediately T: Bug Wrong statements in the code or documentation
Projects
PyNEST
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants