StateVariable.is_immutable()

Returns true if the state variable is immutable, otherwise returns false.

is_immutable() β†’ bool

Query Example

from glider import *

def query():

  state_variables = (
    StateVariables()
    .exec(175)
    .filter(lambda state_variable: state_variable.is_immutable())
  )

  print(state_variables[0].source_code())

  return state_variables

Output Example

Last updated