Skip to content

Commit

Permalink
fix: type check warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thehapyone committed Sep 22, 2024
1 parent a11ffb4 commit de73905
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/crewai/memory/entity/entity_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EntityMemory(Memory):
Inherits from the Memory class.
"""

def __init__(self, crew=None, embedder_config=None, storage: Storage=None):
def __init__(self, crew=None, embedder_config=None, storage: Storage | None=None):
storage = (
storage
if storage
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/memory/long_term/long_term_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LongTermMemory(Memory):
LongTermMemoryItem instances.
"""

def __init__(self, storage: Storage=None):
def __init__(self, storage: Storage: Storage | None=None):
storage = storage if storage else LTMSQLiteStorage()
super().__init__(storage)

Expand Down
2 changes: 1 addition & 1 deletion src/crewai/memory/short_term/short_term_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ShortTermMemory(Memory):
MemoryItem instances.
"""

def __init__(self, crew=None, embedder_config=None, storage: Storage=None):
def __init__(self, crew=None, embedder_config=None, storage: Storage | None=None):
storage = (
storage
if storage
Expand Down

0 comments on commit de73905

Please sign in to comment.