Skip to content
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
@icaven

Description

@icaven

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions