Skip to content

Commit

Permalink
Type hints Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhipengXue97 committed Jul 10, 2024
1 parent d0e9023 commit 2f4449f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errbot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pathlib import Path
from platform import system
from typing import Optional, Union
from collections.abc import Mapping

from errbot.bootstrap import CORE_BACKENDS
from errbot.logs import root_logger
Expand Down Expand Up @@ -82,8 +83,7 @@ def get_config(config_path: str):
exit(-1)


def _read_dict() -> dict:
from collections.abc import Mapping
def _read_dict() -> Mapping:

new_dict = ast.literal_eval(sys.stdin.read())
if not isinstance(new_dict, Mapping):
Expand Down

0 comments on commit 2f4449f

Please sign in to comment.