StateVariable.is_public()

Returns true if the visibility of the state variable is public, otherwise returns false.

is_public() → bool

Query Example

from glider import *

def query():

  state_variables = (
    StateVariables()
    .exec(30)
    .filter(lambda state_variable: state_variable.is_public())
  )

  print(state_variables[0].source_code())

  return state_variables

Output Example

Last updated