Skip to content

Commit

Permalink
chore: applied no_implicit_optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 11, 2023
1 parent 9bae2fd commit 4e45bb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions aw_client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse
import logging
import textwrap
from typing import List
from typing import Optional, List
from datetime import timedelta, datetime, timezone

import click
Expand Down Expand Up @@ -119,7 +119,7 @@ def query(
_json: bool,
start: datetime,
stop: datetime,
name: str = None,
name: Optional[str] = None,
):
with open(path) as f:
query = f.read()
Expand Down Expand Up @@ -156,7 +156,7 @@ def report(
cache: bool,
start: datetime,
stop: datetime,
name: str = None,
name: Optional[str] = None,
):
logger.info(f"Querying between {start} and {stop}")
bid_window = f"aw-watcher-window_{hostname}"
Expand Down Expand Up @@ -242,7 +242,7 @@ def canonical(
cache: bool,
start: datetime,
stop: datetime,
name: str = None,
name: Optional[str] = None,
):
logger.info(f"Querying between {start} and {stop}")
bid_window = f"aw-watcher-window_{hostname}"
Expand Down
10 changes: 5 additions & 5 deletions aw_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def get_events(
self,
bucket_id: str,
limit: int = -1,
start: datetime = None,
end: datetime = None,
start: Optional[datetime] = None,
end: Optional[datetime] = None,
) -> List[Event]:
endpoint = f"buckets/{bucket_id}/events"

Expand Down Expand Up @@ -195,8 +195,8 @@ def get_eventcount(
self,
bucket_id: str,
limit: int = -1,
start: datetime = None,
end: datetime = None,
start: Optional[datetime] = None,
end: Optional[datetime] = None,
) -> int:
endpoint = f"buckets/{bucket_id}/events/count"

Expand Down Expand Up @@ -308,7 +308,7 @@ def query(
self,
query: str,
timeperiods: List[Tuple[datetime, datetime]],
name: str = None,
name: Optional[str] = None,
cache: bool = False,
) -> List[Any]:
endpoint = "query/"
Expand Down

0 comments on commit 4e45bb6

Please sign in to comment.