Skip to content

Commit

Permalink
Fix compatibility with Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lvps committed Apr 11, 2024
1 parent 11f451e commit 594094f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caco-mela.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import argparse
import os
import pwd
from typing import Optional
from typing import Optional, Union

import ldap
from dotenv import load_dotenv, find_dotenv
Expand All @@ -18,7 +18,7 @@ def set_boolean(config: dict, var: str):
config[var] = config[var].lower() not in ('0', 'no', 'false', 'n', 'off')


def parse_args(tests_env: Optional[str] = None) -> dict[str, str | bool]:
def parse_args(tests_env: Optional[str] = None) -> dict[str, Union[str, bool]]:
parser = argparse.ArgumentParser(description='Provision SSH keys from a LDAP server, without syncing UIDs.', prog="caco-mela")
parser.add_argument('--version', action='version', version='%(prog)s 1.0.0')
parser.add_argument('-l', '--ldap', dest='LDAP_BIND_SERVER', type=str, help="LDAP server address")
Expand Down

0 comments on commit 594094f

Please sign in to comment.