MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / init_from_env

Method init_from_env

misc/python/materialize/ui.py:31–38  ·  view source on GitHub ↗

Set to quiet based on MZ_QUIET being set to almost any value The only values that this gets set to false for are the empty string, 0, or no

(cls, explicit: bool | None)

Source from the content-addressed store, hash-verified

29
30 @classmethod
31 def init_from_env(cls, explicit: bool | None) -> None:
32 """Set to quiet based on MZ_QUIET being set to almost any value
33
34 The only values that this gets set to false for are the empty string, 0, or no
35 """
36 cls.quiet = env_is_truthy("MZ_QUIET")
37 if explicit is not None:
38 cls.quiet = explicit
39
40
41def speaker(prefix: str) -> Callable[..., None]:

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

env_is_truthyFunction · 0.85

Tested by

no test coverage detected