(self)
| 146 | |
| 147 | @Option.current.getter # type: ignore |
| 148 | def current(self) -> _O: |
| 149 | try: |
| 150 | # we access the current value during init to debug log it |
| 151 | # no need to warn unless it's actually used. since this attr |
| 152 | # is only set after super().__init__ is called, we can check |
| 153 | # for it to determine if it's being accessed by a user. |
| 154 | msg = self._deprecation_message |
| 155 | except AttributeError: |
| 156 | pass |
| 157 | else: |
| 158 | warn(msg, DeprecationWarning) |
| 159 | return super().current |