mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-22 13:28:12 +08:00
Various ruff fixes (#12821)
This commit is contained in:
@ -2,12 +2,12 @@ from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from collections import deque
|
||||
from typing import Generic, TypeVar
|
||||
from typing import TypeVar
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class LRUCache(Generic[T]):
|
||||
class LRUCache[T]:
|
||||
"""
|
||||
Page Replacement Algorithm, Least Recently Used (LRU) Caching.
|
||||
|
||||
|
Reference in New Issue
Block a user