Skip to content

Commit

Permalink
Fix mypy strictness.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Sep 17, 2024
1 parent e3f8c20 commit e5f454b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sdks/python/apache_beam/options/pipeline_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
from typing import Any
from typing import Callable
from typing import Dict
from typing import Iterable
from typing import List
from typing import Optional
from typing import Sequence
from typing import Type
from typing import TypeVar

Expand Down Expand Up @@ -186,9 +186,7 @@ def _add_argparse_args(cls, parser):
By default the options classes will use command line arguments to initialize
the options.
"""
def __init__(self, flags: Optional[Iterable[str]] = None, **kwargs):
# type: (Optional[List[str]], **Any) -> None

def __init__(self, flags: Optional[Sequence[str]] = None, **kwargs) -> None:
"""Initialize an options class.
The initializer will traverse all subclasses, add all their argparse
Expand Down

0 comments on commit e5f454b

Please sign in to comment.