From d26eb433482932d7fb6f65cf27753172ce796c8b Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Fri, 26 Jul 2024 11:04:55 -0400 Subject: [PATCH] style: simplify --- python/hypy/hydrolocation/nwis_location.py | 3 +++ python/hypy/nexus.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python/hypy/hydrolocation/nwis_location.py b/python/hypy/hydrolocation/nwis_location.py index ac9a581..6ba76b8 100644 --- a/python/hypy/hydrolocation/nwis_location.py +++ b/python/hypy/hydrolocation/nwis_location.py @@ -10,10 +10,13 @@ from numpy import datetime64 from datetime import datetime from shapely.geometry import Point + class NWISLocation(HydroLocation): """ An NWIS subclass of HydroLocation """ + __slots__ = ("_station_id",) + def __init__(self, station_id: str, realized_nexus: str, diff --git a/python/hypy/nexus.py b/python/hypy/nexus.py index b9ea39f..28c4c9c 100644 --- a/python/hypy/nexus.py +++ b/python/hypy/nexus.py @@ -8,7 +8,7 @@ from .catchment import Catchments_Collection from .hydrolocation.hydrolocation import HydroLocation -class Nexus(): +class Nexus: """ Implementation of the HY Features Nexus concept. """