Skip to content

Commit db0ec52

Browse files
Fix syntaxes
1 parent 1eeebfb commit db0ec52

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

opengsq/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def register(self, parser: argparse.ArgumentParser):
3030
self.__paths[subparser_name] = fullpath
3131

3232
# Add parser and arguments
33-
sub = subparsers.add_parser(subparser_name, help=f"{protocol_classname} protocol")
33+
sub = subparsers.add_parser(subparser_name, help='{} protocol'.format(protocol_classname))
3434
self.__add_arguments(sub, parameters)
3535

3636
# Load all servers from __init__.py

opengsq/protocols/models/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
from dataclasses import dataclass
3+
from typing import List
34

45
from opengsq.protocols.models.player import Player
56

@@ -12,7 +13,7 @@ class Server:
1213
max_players: int
1314
bots: int
1415
latency: float
15-
player_list: list
16+
player_list: List[Player]
1617

1718
def __init__(self):
1819
pass

0 commit comments

Comments
 (0)