(self, value: bool)
| 17 | |
| 18 | @contextmanager |
| 19 | def strict_optional_set(self, value: bool) -> Iterator[None]: |
| 20 | saved = self.strict_optional |
| 21 | self.strict_optional = value |
| 22 | try: |
| 23 | yield |
| 24 | finally: |
| 25 | self.strict_optional = saved |
| 26 | |
| 27 | |
| 28 | state: Final = StrictOptionalState(strict_optional=True) |
no outgoing calls