Skip to content

Commit

Permalink
Fix type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
David Besau committed Aug 23, 2021
1 parent 7142d81 commit 149c5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import argparse
import os
from typing import Sized
from typing import Collection

import mysql.connector

Expand All @@ -18,7 +18,7 @@
parser.add_argument("--version", action='version', version=PROGRAM_NAME + " " + VERSION)


def get_option_files() -> Sized[str]:
def get_option_files() -> Collection[str]:
possible_option_files = [
os.getcwd() + '/my.cnf',
os.path.dirname(os.path.abspath(__file__)) + '/my.cnf',
Expand All @@ -34,7 +34,7 @@ def main() -> None:
args = parser.parse_args()

if 'option_file' in vars(args) and args.option_file:
option_files = [args.option_file]
option_files: Collection[str] = [args.option_file]
else:
option_files = get_option_files()
if len(option_files) == 0:
Expand Down

0 comments on commit 149c5bf

Please sign in to comment.