Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
6f68be40
Unverified
Commit
6f68be40
authored
Jan 14, 2026
by
Tzu-Ling Kan
Committed by
GitHub
Jan 14, 2026
Browse files
fix: mypy error (#5426)
Signed-off-by:
tzulingk@nvidia.com
<
tzulingk@nvidia.com
>
parent
4816d639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
tests/serve/lora_utils.py
tests/serve/lora_utils.py
+8
-5
No files found.
tests/serve/lora_utils.py
View file @
6f68be40
...
...
@@ -16,13 +16,16 @@ import tempfile
import
time
from
dataclasses
import
dataclass
from
pathlib
import
Path
from
typing
import
Optional
from
typing
import
TYPE_CHECKING
,
Optional
import
boto3
import
requests
from
botocore.client
import
Config
from
botocore.exceptions
import
ClientError
if
TYPE_CHECKING
:
from
mypy_boto3_s3.client
import
S3Client
logger
=
logging
.
getLogger
(
__name__
)
# LoRA testing constants
...
...
@@ -79,7 +82,7 @@ class MinioService:
self
.
config
=
config
self
.
_logger
=
logging
.
getLogger
(
self
.
__class__
.
__name__
)
self
.
_temp_download_dir
:
Optional
[
str
]
=
None
self
.
_s3_client
=
None
self
.
_s3_client
:
Optional
[
"S3Client"
]
=
None
self
.
_owns_container
:
bool
=
False
def
_get_s3_client
(
self
):
...
...
@@ -265,15 +268,15 @@ class MinioService:
)
s3_client
=
self
.
_get_s3_client
()
local_path
=
Path
(
local_path
)
local_path
_obj
=
Path
(
local_path
)
for
file_path
in
local_path
.
rglob
(
"*"
):
for
file_path
in
local_path
_obj
.
rglob
(
"*"
):
if
not
file_path
.
is_file
():
continue
if
".git"
in
file_path
.
parts
:
continue
relative_path
=
file_path
.
relative_to
(
local_path
).
as_posix
()
relative_path
=
file_path
.
relative_to
(
local_path
_obj
).
as_posix
()
s3_key
=
f
"
{
self
.
config
.
lora_name
}
/
{
relative_path
}
"
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment