Skip to content

Commit

Permalink
Inline default object() in RunVar
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Aug 2, 2023
1 parent f2ed14d commit a7f7798
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trio-stubs/lowlevel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ class _RunVarToken:
@final
@attr.s(eq=False, hash=False, slots=True)
class RunVar(Generic[_T], metaclass=ABCMeta):
_NO_DEFAULT = object()
_name: str = attr.ib()
_default: _T = attr.ib(default=cast(_T, _NO_DEFAULT))
_default: _T = attr.ib(default=cast(_T, object()))
def get(self, default: _T = ...) -> _T: ...
def set(self, value: _T) -> _RunVarToken: ...
def reset(self, token: _RunVarToken) -> None: ...
Expand Down

0 comments on commit a7f7798

Please sign in to comment.