Skip to content

Commit

Permalink
fix entity type in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
douwevandermeij committed Jun 9, 2023
1 parent c0a3ca5 commit a5ad9c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fractal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."""

__version__ = "4.0.0"
__version__ = "4.0.1"

from abc import ABC

Expand Down
5 changes: 2 additions & 3 deletions fractal/core/command_bus/commands.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from dataclasses import dataclass
from typing import Generic

from fractal_repositories.core.entity import Entity
from fractal_repositories.core.repositories import EntityType
from fractal_specifications.generic.specification import Specification

Expand All @@ -10,14 +9,14 @@

@dataclass
class AddEntityCommand(Generic[EntityType], Command):
entity: Entity
entity: EntityType
specification: Specification


@dataclass
class UpdateEntityCommand(Generic[EntityType], Command):
id: str
entity: Entity
entity: EntityType
specification: Specification


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fractal-toolkit"
version = "4.0.0"
version = "4.0.1"
description = "Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."
authors = ["Douwe van der Meij <douwe@karibu-online.nl>"]

Expand Down

0 comments on commit a5ad9c3

Please sign in to comment.