You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are around 10+ static type checker errors in the codebase. Addressing these now will prevent them from becoming a larger issue down the line.
Goals
Fix existing static type checker errors to bring the code to a clean, type-safe state.
Promote continuous code quality by ensuring type correctness, which will support maintainability and catch potential bugs early.
Suggested Actions
Identify and resolve each type error flagged by the checker.
The text was updated successfully, but these errors were encountered:
Fixes#7
Fix static type checker errors and add type annotations across multiple files.
* **onshape_api/connect.py**
- Add type annotations to all functions and methods.
- Fix type errors in `Client` class methods.
- Ensure all imports are correctly typed.
* **onshape_api/data/preprocess.py**
- Add type annotations to all functions.
- Fix type errors in `extract_ids` and `get_assembly_df` functions.
* **onshape_api/graph.py**
- Add type annotations to all functions.
- Fix type inconsistencies in `create_graph` and `get_robot_link` functions.
* **onshape_api/log.py**
- Add type annotations to all methods.
- Fix type inconsistencies in `Logger` class methods.
* **onshape_api/models/assembly.py**
- Add type annotations to all classes and methods.
- Fix type issues in `PartInstance` and `AssemblyInstance` classes.
* **onshape_api/models/document.py**
- Add type annotations to all classes and methods.
- Fix type issues in `Document` and `DocumentMetaData` classes.
* **onshape_api/models/element.py**
- Add type annotations to all classes and methods.
- Fix type issues in `Element` class.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/imsenthur/onshape-api/issues/7?shareId=XXXX-XXXX-XXXX-XXXX).
Currently, there are around 10+ static type checker errors in the codebase. Addressing these now will prevent them from becoming a larger issue down the line.
Goals
Suggested Actions
The text was updated successfully, but these errors were encountered: