Skip to content

Commit 2b969a3

Browse files
fzyzcjysolrex
authored andcommitted
Super tiny fix typo (sgl-project#4738)
1 parent 091a573 commit 2b969a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/sglang/bench_one_batch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def add_cli_args(parser: argparse.ArgumentParser):
117117

118118
@classmethod
119119
def from_cli_args(cls, args: argparse.Namespace):
120-
# use the default value's type to case the args into correct types.
120+
# use the default value's type to cast the args into correct types.
121121
attrs = [(attr.name, type(attr.default)) for attr in dataclasses.fields(cls)]
122122
return cls(
123123
**{attr: attr_type(getattr(args, attr)) for attr, attr_type in attrs}

python/sglang/bench_one_batch_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def add_cli_args(parser: argparse.ArgumentParser):
5757

5858
@classmethod
5959
def from_cli_args(cls, args: argparse.Namespace):
60-
# use the default value's type to case the args into correct types.
60+
# use the default value's type to cast the args into correct types.
6161
attrs = [(attr.name, type(attr.default)) for attr in dataclasses.fields(cls)]
6262
return cls(
6363
**{attr: attr_type(getattr(args, attr)) for attr, attr_type in attrs}

0 commit comments

Comments
 (0)