We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1bc2ed commit 07573ccCopy full SHA for 07573cc
devtools/ya/yalibrary/store/yt_store/opts_helper/__init__.py
@@ -1,9 +1,11 @@
1
import humanfriendly
2
3
4
-def parse_yt_max_cache_size(raw_size: str | None) -> str | int | None:
+def parse_yt_max_cache_size(raw_size: int | str | None) -> str | int | None:
5
if not raw_size:
6
return None
7
+ if isinstance(raw_size, int):
8
+ return raw_size
9
raw_size = raw_size.strip()
10
if raw_size.endswith("%"):
11
v = float(raw_size[:-1])
0 commit comments