MCPcopy
hub / github.com/pathwaycom/pathway / factory

Function factory

python/pathway/internals/config.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 _type=str,
15):
16 def factory():
17 value = os.environ.get(name, default)
18 if default_if_empty and value == "":
19 value = default
20 if value is not None:
21 return _type(value)
22 return value
23
24 return field(default_factory=factory)
25

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by 2