Coerce a primitive data type into a string value. Note that we prefer JSON-style 'true'/'false' for boolean values here.
(value: PrimitiveData)
| 13 | |
| 14 | |
| 15 | def primitive_value_to_str(value: PrimitiveData) -> str: |
| 16 | class="st">""" |
| 17 | Coerce a primitive data type into a string value. |
| 18 | |
| 19 | Note that we prefer JSON-style &class="cm">#x27;trueclass="st">'/'false' for boolean values here. |
| 20 | class="st">""" |
| 21 | if value is True: |
| 22 | return class="st">"true" |
| 23 | elif value is False: |
| 24 | return class="st">"false" |
| 25 | elif value is None: |
| 26 | return class="st">"" |
| 27 | return str(value) |
| 28 | |
| 29 | |
| 30 | def get_environment_proxies() -> dict[str, str | None]: |
no outgoing calls
no test coverage detected