Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
fix: fix pyright lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhala committed Oct 30, 2020
1 parent 3a259ec commit 21b2157
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fzfaws/ec2/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ def _name_tag_generator(

def _instance_id_generator(
self, instances: List[Dict[str, Any]]
) -> Generator[Dict[str, str], None, None]:
) -> Generator[Dict[str, Any], None, None]:
"""Create a generator for listing instance ids.
:param instances: list of instance from boto3 response
:type instances: List[Dict[str, Any]]
:return: formatted dict of instance id information in generator form
:rtype: Generator[Dict[str,str], None, None]
:rtype: Generator[Dict[str,Any], None, None]
"""
for instance in instances:
yield {
Expand Down
6 changes: 3 additions & 3 deletions fzfaws/s3/s3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Contains the s3 wrapper class."""
import itertools
import os
import re
import itertools
from typing import Any, Dict, Generator, List, Optional, Sequence, Tuple, Union

from botocore.exceptions import ClientError
Expand Down Expand Up @@ -442,7 +442,7 @@ def _get_path_option(self, download: bool = False) -> str:

def _version_generator(
self, versions: List[dict], markers: List[dict], non_current: bool, delete: bool
) -> Generator[Dict[str, str], None, None]:
) -> Generator[Dict[str, Any], None, None]:
"""Create version generator to reduce memory usage.
:param versions: list of versions from list_object_versions paginator
Expand All @@ -454,7 +454,7 @@ def _version_generator(
:param delete: include delete marker
:type delete: bool
:return: formatted dict of version information in generator form
:rtype: Generator[Dict[str,str], None, None]
:rtype: Generator[Dict[str,Any], None, None]
"""
for version in versions:
if (non_current and not version.get("IsLatest")) or not non_current:
Expand Down
2 changes: 1 addition & 1 deletion fzfaws/utils/pyfzf.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _construct_fzf_cmd(self) -> List[str]:
if os.getenv("FZFAWS_FZF_OPTS"):
cmd_list.extend(os.getenv("FZFAWS_FZF_OPTS").split(" "))
if os.getenv("FZFAWS_FZF_KEYS"):
cmd_list.append(os.getenv("FZFAWS_FZF_KEYS"))
cmd_list.append(os.getenv("FZFAWS_FZF_KEYS", ""))
return cmd_list

def _check_ctrl_c(self, fzf_result: str) -> None:
Expand Down

0 comments on commit 21b2157

Please sign in to comment.