@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / e5ebeeba53
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 14, 05:30 UTC

Remove exception for Python 3.8 typing from linter (#22506)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Harry Mellor committed Aug 8, 2025 at 11:06 UTC e5ebeeba531755a78f68413e88a23d061404f3e3
2 files changed +2 -4
pyproject.toml
-2
@@ -73,8 +73,6 @@ line-length = 80
73 "vllm/engine/**/*.py" = ["UP006", "UP035"]
74 "vllm/executor/**/*.py" = ["UP006", "UP035"]
75 "vllm/worker/**/*.py" = ["UP006", "UP035"]
76 -# Python 3.8 typing - skip utils for ROCm
77 -"vllm/utils/__init__.py" = ["UP006", "UP035"]
76
77 [tool.ruff.lint]
78 select = [
vllm/utils/__init__.py
+2 -2
@@ -47,7 +47,7 @@ from dataclasses import dataclass, field
47 from functools import cache, lru_cache, partial, wraps
48 from types import MappingProxyType
49 from typing import (TYPE_CHECKING, Any, Callable, Generic, Literal, NamedTuple,
50 - Optional, TextIO, Tuple, TypeVar, Union, cast, overload)
50 + Optional, TextIO, TypeVar, Union, cast, overload)
51 from urllib.parse import urlparse
52 from uuid import uuid4
53
@@ -861,7 +861,7 @@ def is_valid_ipv6_address(address: str) -> bool:
861 return False
862
863
864 -def split_host_port(host_port: str) -> Tuple[str, int]:
864 +def split_host_port(host_port: str) -> tuple[str, int]:
865 # ipv6
866 if host_port.startswith('['):
867 host, port = host_port.rsplit(']', 1)