Skip to content

Commit 2784b2f

Browse files
committed
Fix type annotations
1 parent ace2d06 commit 2784b2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bpython/args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def copyright_banner() -> str:
7777

7878
def parse(
7979
args: Optional[List[str]],
80-
extras: Options = None,
80+
extras: Optional[Options] = None,
8181
ignore_stdin: bool = False,
82-
) -> Tuple:
82+
) -> Tuple[Config, argparse.Namespace, List[str]]:
8383
"""Receive an argument list - if None, use sys.argv - parse all args and
8484
take appropriate action. Also receive optional extra argument: this should
8585
be a tuple of (title, description, callback)

bpython/simpleeval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import ast
2929
import sys
3030
import builtins
31-
from typing import Dict, Any
31+
from typing import Dict, Any, Optional
3232

3333
from . import line as line_properties
3434
from .inspection import getattr_safe
@@ -216,7 +216,7 @@ def find_attribute_with_name(node, name):
216216

217217

218218
def evaluate_current_expression(
219-
cursor_offset: int, line: str, namespace: Dict[str, Any] = None
219+
cursor_offset: int, line: str, namespace: Optional[Dict[str, Any]] = None
220220
):
221221
"""
222222
Return evaluated expression to the right of the dot of current attribute.

0 commit comments

Comments
 (0)