Skip to content

Commit

Permalink
fix: mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
italojohnny committed Aug 12, 2024
1 parent c879a12 commit 71f379a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/variable/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_all(self, user_id: Union[UUID, str], session: Session = Depends(get_sess

def list_variables(self, user_id: Union[UUID, str], session: Session = Depends(get_session)) -> list[Optional[str]]:
variables = self.get_all(user_id=user_id, session=session)
return [variable.name for variable in variables]
return [variable.name for variable in variables if variable]

def update_variable(
self,
Expand Down

0 comments on commit 71f379a

Please sign in to comment.