Apply suggestions from code review
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>pull/8562/head
parent
402213bf41
commit
995cc615a0
|
@ -283,7 +283,7 @@ class LruCache(Generic[KT, VT]):
|
|||
return value
|
||||
|
||||
@overload
|
||||
def cache_pop(key: KT, default: Literal[None] = None) -> Union[None, VT]:
|
||||
def cache_pop(key: KT, default: Literal[None] = None) -> Optional[VT]:
|
||||
...
|
||||
|
||||
@overload
|
||||
|
|
Loading…
Reference in New Issue