Skip to content

Commit

Permalink
chore: use inline
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 24, 2024
1 parent 9f8fbaa commit e2e439b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions a_sync/a_sync/_flags.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#cython: profile=False
"""
This module provides functionality for handling synchronous and asynchronous flags
in the ez-a-sync library.
Expand All @@ -17,7 +18,7 @@ from a_sync import exceptions
from a_sync.a_sync.flags import AFFIRMATIVE_FLAGS, NEGATIVE_FLAGS


cdef bint negate_if_necessary(str flag, bint flag_value):
cdef inline bint negate_if_necessary(str flag, bint flag_value):
"""Negate the flag value if necessary based on the flag type.
This function checks if the provided flag is in the set of affirmative or negative flags
Expand Down Expand Up @@ -51,7 +52,7 @@ cdef bint negate_if_necessary(str flag, bint flag_value):
raise exceptions.InvalidFlag(flag)


cdef bint validate_flag_value(str flag, object flag_value):
cdef inline bint validate_flag_value(str flag, object flag_value):
"""
Validate that the flag value is a boolean.
Expand Down

0 comments on commit e2e439b

Please sign in to comment.