From 1b36bd437972a6245d90317892db184aa923a8c9 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Sat, 27 Mar 2021 18:20:06 -0700 Subject: [PATCH] fix spelling mistakes --- my/core/influxdb.py | 2 +- my/core/logging.py | 2 +- my/location/home.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/my/core/influxdb.py b/my/core/influxdb.py index 96214c2..7349b0e 100644 --- a/my/core/influxdb.py +++ b/my/core/influxdb.py @@ -58,7 +58,7 @@ def fill(it: Iterable[Any], *, measurement: str, reset: bool=False, dt_col: str= tags = tags_ # TODO what to do with exceptions?? - # todo handle errors.. not sure how? maybe add tag for 'error' and fill with emtpy data? + # todo handle errors.. not sure how? maybe add tag for 'error' and fill with empty data? dt = d[dt_col].isoformat() del d[dt_col] diff --git a/my/core/logging.py b/my/core/logging.py index d28f86e..03484bf 100644 --- a/my/core/logging.py +++ b/my/core/logging.py @@ -13,7 +13,7 @@ def test() -> None: M: Callable[[str], None] = lambda s: print(s, file=sys.stderr) - M(" Logging module's deafults are not great...'") + M(" Logging module's defaults are not great...'") l = logging.getLogger('test_logger') # todo why is mypy unhappy about these??? l.error("For example, this should be logged as error. But it's not even formatted properly, doesn't have logger name or level") diff --git a/my/location/home.py b/my/location/home.py index 91b7ef6..dc17d12 100644 --- a/my/location/home.py +++ b/my/location/home.py @@ -29,7 +29,7 @@ class Config(user_config): @property def _history(self) -> Sequence[Tuple[datetime, LatLon]]: home1 = self.home - # tood ugh, can't test for isnstance LatLon, it's a tuple itself + # todo ugh, can't test for isnstance LatLon, it's a tuple itself home2: Sequence[Tuple[DateIsh, LatLon]] if isinstance(home1[0], tuple): # already a sequence