Skip to content

Commit

Permalink
fix: marzban-cli compatible with python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Aug 5, 2024
1 parent cb7aa7a commit f3e6197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, List

import typer
from rich.table import Table
Expand All @@ -16,10 +16,10 @@
def list_users(
offset: Optional[int] = typer.Option(None, *utils.FLAGS["offset"]),
limit: Optional[int] = typer.Option(None, *utils.FLAGS["limit"]),
username: Optional[list[str]] = typer.Option(None, *utils.FLAGS["username"], help="Search by username(s)"),
username: Optional[List[str]] = typer.Option(None, *utils.FLAGS["username"], help="Search by username(s)"),
search: Optional[str] = typer.Option(None, *utils.FLAGS["search"], help="Search by username/note"),
status: Optional[crud.UserStatus] = typer.Option(None, *utils.FLAGS["status"]),
admins: Optional[list[str]] = typer.Option(None, *utils.FLAGS["admin"], help="Search by owner admin's username(s)")
admins: Optional[List[str]] = typer.Option(None, *utils.FLAGS["admin"], help="Search by owner admin's username(s)")
):
"""
Displays a table of users
Expand Down

0 comments on commit f3e6197

Please sign in to comment.