Skip to content

Conversation

@sveinse
Copy link
Collaborator

@sveinse sveinse commented Apr 5, 2023

This PR is an overhaul on the imports within canopen. To make the package consistent, every import is now using absolute imports, e.g. import canopen.something

  • Use absolute canopen instead of relative imports
  • Ensure canopen imports after system imports
  • Fix isinstance bug in TPDO.stop()
  • Change const from objectdictionary.* to datatypes.* in objectdictionary.eds.py for consistency
  • Save typing by using ObjectDictionary instead of objectdictionary.ObjectDictionary

sveinse and others added 2 commits April 5, 2023 18:55
* Use absolute `canopen` instead of relative imports
* Ensure canopen imports after system imports
* Fix isinstance bug in TPDO.stop()
* Change const from objectdictionary.* to datatypes.* in objectdictionary.eds.py for consistency
* Save typing by using ObjectDictionary instead of objectdictionary.ObjectDictionary
@christiansandberg christiansandberg merged commit 9e303f2 into canopen-python:master Apr 8, 2023
@sveinse sveinse deleted the feature-import-cleanup branch April 8, 2023 19:51
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