Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodanswer committed Nov 11, 2024
1 parent b6301ff commit 8b9e1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/danswer/utils/variable_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ def fetch_ee_implementation_or_noop(
if not global_version.is_ee_version():
if inspect.iscoroutinefunction(noop_return_value):

async def async_noop(*args, **kwargs):
async def async_noop(*args: Any, **kwargs: Any) -> Any:
return await noop_return_value(*args, **kwargs)

return async_noop

else:

def sync_noop(*args, **kwargs):
def sync_noop(*args: Any, **kwargs: Any) -> Any:
return noop_return_value

return sync_noop
Expand Down

0 comments on commit 8b9e1a0

Please sign in to comment.