For the complete documentation index, see llms.txt. This page is also available as Markdown.

StateVariables.with_all_properties()

Adds a filter to get state variables that have all given properties

with_all_properties(properties: List[StateVariableProp]) → StateVariables

Query Example

from glider import *


def query():
  state_variables = (
    StateVariables()
    .with_all_properties([StateVariableProp.CONSTANT, StateVariableProp.PUBLIC])
    .exec(10)
  )

  print(state_variables[0].source_code())

  return state_variables

Example Output

Last updated