# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ Context Variables """ class Context(object): def copy(self): """ Return a shallow copy of the context object. """ pass def get(self, key, default=None): """ Return the value for `key` if `key` has the value in the context object. If `key` does not exist, return `default`. If `default` is not given, return None. """ pass def items(self): """ Return all variables and their values in the context object. The result is returned as a list of 2-tuples (variable, value). """ pass def keys(self): """ Return a list of all variables in the context object. """ pass def run(self): pass def values(self): """ Return a list of all variables' values in the context object. """ pass class ContextVar(object): def get(self): """ Return a value for the context variable for the current context. If there is no value for the variable in the current context, the method will: * return the value of the default argument of the method, if provided; or * return the default value for the context variable, if it was created with one; or * raise a LookupError. """ pass name = None def reset(self, token): """ Reset the context variable. The variable is reset to the value it had before the `ContextVar.set()` that created the token was used. """ pass def set(self, value): """ Call to set a new value for the context variable in the current context. The required value argument is the new value for the context variable. Returns a Token object that can be used to restore the variable to its previous value via the `ContextVar.reset()` method. """ pass class Token(object): MISSING = None old_value = property(None, None, None, ) var = property(None, None, None, ) __doc__ = 'Context Variables' __file__ = '/home/shared/src/ide/build-files/build-temp/runtimes-release/__os__/linux-arm64/runtime-python3.11/lib/python3.11/lib-dynload/_contextvars.cpython-311-aarch64-linux-gnu.so' __loader__ = None __name__ = '_contextvars' __package__ = '' __spec__ = None def copy_context(): pass