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

Refactor object copying in EDisGo class #468

Conversation

khelfen
Copy link
Collaborator

@khelfen khelfen commented Feb 19, 2025

  • Replaced direct use of copy.deepcopy with custom copy method in two places.
  • Added a new copy method to the EDisGo class, supporting both shallow and deep copies while excluding the SQLAlchemy engine from being copied.
  • Ensured proper restoration of the SQLAlchemy engine after copying.

- Replaced direct use of copy.deepcopy with custom copy method in two places.
- Added a new `copy` method to the `EDisGo` class, supporting both shallow and deep copies while excluding the SQLAlchemy engine from being copied.
- Ensured proper restoration of the SQLAlchemy engine after copying.
@khelfen khelfen merged commit dffa1f7 into project/411-LoMa Feb 19, 2025
1 of 6 checks passed
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.

1 participant