mirror of
https://github.com/frappe/bench.git
synced 2025-01-22 22:58:31 +00:00
feat: comment out unsupported typing
This commit is contained in:
parent
e8ea98552c
commit
23bd717d7b
@ -10,7 +10,7 @@ from glob import glob
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from shlex import split
|
from shlex import split
|
||||||
from tarfile import data_filter, AbsoluteLinkError, TarInfo
|
from tarfile import data_filter, AbsoluteLinkError, TarInfo
|
||||||
from typing import Callable, List, Optional, Tuple
|
from typing import List, Optional, Tuple
|
||||||
|
|
||||||
# imports - third party imports
|
# imports - third party imports
|
||||||
import click
|
import click
|
||||||
@ -575,7 +575,7 @@ def get_cmd_from_sysargv():
|
|||||||
def get_app_cache_extract_filter(
|
def get_app_cache_extract_filter(
|
||||||
count_threshold: int = 10_000,
|
count_threshold: int = 10_000,
|
||||||
size_threshold: int = 1_000_000_000,
|
size_threshold: int = 1_000_000_000,
|
||||||
) -> Callable[[TarInfo, str], TarInfo | None]:
|
): # -> Callable[[TarInfo, str], TarInfo | None]
|
||||||
state = dict(count=0, size=0)
|
state = dict(count=0, size=0)
|
||||||
|
|
||||||
def filter_function(member: TarInfo, dest_path: str) -> Optional[TarInfo]:
|
def filter_function(member: TarInfo, dest_path: str) -> Optional[TarInfo]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user