Callables.with_declarer_contract_name()
Adds a filter to get functions/modifiers that have declarer contract with the given name.
with_declarer_contract_name(
name: str, sensitivity: bool = True
) →
Callables
Function Example
Example Query
from glider import *
def query():
# Retrieve the contracts of a list of functions
contracts = Functions().with_declarer_contract_name("TestToken").exec(2)
# Return the first five contracts
return contracts[:5]
Query Output

Modifier Example
Example Query
from glider import *
def query():
# Retrieve the contracts of a list of modifiers
contracts = Modifiers().with_declarer_contract_name("TestToken").exec(2)
# Return the first five contracts
return contracts[:5]
Query Output

Last updated