This repository was archived by the owner on Aug 22, 2024. It is now read-only.
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
Update python bindings to follow the PEP 8 standard #1967
Open
Description
There are a number of formatting issues in the python bindings that cause warnings in PEP 8 aware IDEs:
- triple single quoted blocks for doc strings at the beginning of functions when they should be double quoted
- missing colons after variable names in the descriptions in the doc string of functions
- unused variables
- variables initialized to None when they should be initialized to a value of the intended type
- integer values used for initializing ctypes.c_bool when the python False should be used
- duplicated imports
- missing initialization of device index in Device (although it isn't used)
- unnecessary parentheses around tuples in returns
None of these affect functionality or performance, but they it more difficult to see actual errors with these being flagged.
Metadata
Metadata
Assignees
Labels
No labels