-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Use isinstance() for type checking to enhance flexibility i… (
#1490) **Refactor: Use `isinstance()` for type checking to enhance flexibility in workspace configuration** - Replaced direct class name checks with `isinstance()` to improve extensibility and maintainability. - Adjusted type handling for `WorkspaceSettings`, `DockerResources`, and `AwsResources` to ensure compatibility with future client-side customizations. - Streamlined object identification in `get_workspace_objects_from_file` and related functions for better readability and reduced redundancy. - Removed unnecessary imports and consolidated resource checks to align with updated type-checking logic. These changes make the workspace configuration process more robust and adaptable to evolving client requirements.
- Loading branch information
1 parent
4f392b1
commit f24a819
Showing
1 changed file
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters