Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Jan 4, 2024
1 parent aa19653 commit 4e7e23e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyiron_workflow/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ def _register_recursively_from_module(
self._register_package_from_module(module, domain, container)

def _register_package_from_module(
self,
module: ModuleType,
domain: str,
container: dict | DotDict
self, module: ModuleType, domain: str, container: dict | DotDict
) -> None:
package = self._get_existing_package_or_register_a_new_one(module.__name__)
# NOTE: Here we treat the package identifier and the module name as equivalent
Expand All @@ -263,6 +260,7 @@ def _get_existing_package_or_register_a_new_one(
except KeyError:
# Otherwise make a new package
from pyiron_workflow.node_package import NodePackage

package = NodePackage(package_identifier)
self._package_registry[package_identifier] = package
return package
Expand Down

0 comments on commit 4e7e23e

Please sign in to comment.