(self)
| 389 | |
| 390 | @property |
| 391 | def namespace(self) -> DesignDocumentNamespace: |
| 392 | value = self._params.get( |
| 393 | 'ns', None |
| 394 | ) |
| 395 | if value is None: |
| 396 | return DesignDocumentNamespace.DEVELOPMENT |
| 397 | |
| 398 | if isinstance(value, str): |
| 399 | return DesignDocumentNamespace.from_str(value) |
| 400 | if isinstance(value, bool): |
| 401 | if not value: |
| 402 | return DesignDocumentNamespace.PRODUCTION |
| 403 | |
| 404 | return DesignDocumentNamespace.DEVELOPMENT |
| 405 | |
| 406 | @namespace.setter |
| 407 | def namespace(self, value # type: Union[DesignDocumentNamespace, str] |
nothing calls this directly
no test coverage detected