Skip to content

Commit

Permalink
Remove redundant DefaultT generic type from Ok.unwrap_or()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermalyga committed Jan 9, 2024
1 parent 8312c0d commit b7caf83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poltergeist/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def unwrap_or(self) -> T:
...

@overload
def unwrap_or(self, default: DefaultT) -> T:
def unwrap_or(self, default: Any) -> T:
...

def unwrap_or(self, default: Any = None) -> Any:
Expand Down

0 comments on commit b7caf83

Please sign in to comment.