From d6a6d1a0881fc0ff448d718e7798e4cbe1cf7f77 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 eebdce1..1e2b65d 100644 --- a/python/hypy/nexus.py +++ b/python/hypy/nexus.py @@ -6,7 +6,7 @@ from .catchment import Catchment, Catchments_Collection from .hydrolocation.hydrolocation import HydroLocation -class Nexus(): +class Nexus: """ Implementation of the HY Features Nexus concept. """