Skip to content

Commit

Permalink
fix: need py entrypoint (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 23, 2024
1 parent 8f8a363 commit 78a644c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions a_sync/a_sync/_kwargs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ from a_sync.a_sync._flags cimport negate_if_necessary
from a_sync.a_sync.flags import VIABLE_FLAGS


def get_flag_name_legacy(dict kwargs) -> str:
return get_flag_name(kwargs)


cdef str get_flag_name(dict kwargs):
"""
Get the name of the flag present in the kwargs.
Expand Down
2 changes: 1 addition & 1 deletion a_sync/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def process_item(item: int) -> int:

if isinstance(
wrapped_func, ASyncMethodDescriptor
) and not _kwargs.get_flag_name(wrapped_func_kwargs):
) and not _kwargs.get_flag_name_legacy(wrapped_func_kwargs):
wrapped_func_kwargs["sync"] = False
if wrapped_func_kwargs:
self._wrapped_func_kwargs = wrapped_func_kwargs
Expand Down

0 comments on commit 78a644c

Please sign in to comment.