Skip to content

Commit

Permalink
Fix for mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Akhmetov committed May 6, 2018
1 parent 2091f9e commit 3276460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telegram/tdjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
c_void_p,
c_longlong,
)
from typing import Any, Dict
from typing import Any, Dict, Optional

import pkg_resources

logger = logging.getLogger(__name__)


def _get_tdjson_lib_path():
def _get_tdjson_lib_path() -> str:
if platform.system().lower() == 'darwin':
lib_name = 'darwin/libtdjson.dylib'
else:
Expand All @@ -29,7 +29,7 @@ def _get_tdjson_lib_path():


class TDJson(object):
def __init__(self, library_path: str = None) -> None:
def __init__(self, library_path: Optional[str] = None) -> None:
if library_path is None:
library_path = _get_tdjson_lib_path()
logger.info(f'Using shared library "{library_path}"')
Expand Down

0 comments on commit 3276460

Please sign in to comment.