Skip to content

Commit

Permalink
Update _kwargs.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 24, 2024
1 parent e2e439b commit 0198451
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a_sync/a_sync/_kwargs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_flag_name_legacy(dict kwargs) -> str:
return get_flag_name(kwargs)


cdef str get_flag_name(dict kwargs):
cdef inline str get_flag_name(dict kwargs):
"""
Get the name of the flag present in the kwargs.
Expand Down Expand Up @@ -46,7 +46,7 @@ cdef str get_flag_name(dict kwargs):
raise exceptions.TooManyFlags("kwargs", present_flags)


cdef bint is_sync(str flag, dict kwargs, bint pop_flag):
cdef inline bint is_sync(str flag, dict kwargs, bint pop_flag):
"""
Determine if the operation should be synchronous based on the flag value.
Expand All @@ -66,4 +66,4 @@ cdef bint is_sync(str flag, dict kwargs, bint pop_flag):
try:
return negate_if_necessary(flag, kwargs[flag])
except TypeError as e:
raise exceptions.InvalidFlagValue(flag, kwargs[flag]) from e.__cause__
raise exceptions.InvalidFlagValue(flag, kwargs[flag]) from e.__cause__

0 comments on commit 0198451

Please sign in to comment.