From 00d2f100da8f195df65ad430e18c4b5a8f2db786 Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Sun, 17 May 2026 19:22:02 -0400 Subject: [PATCH] Sync legislator/district docstrings with actual signatures get_legislator and search_districts don't take fields= args anymore (they were removed when the v3 calls landed) but the docstrings still listed them. Drop those, and rename the locate_legislators 'long' docstring entry to 'lng' to match the parameter name. Refs #20 Signed-off-by: Charlie Tonneslan --- src/pyopenstates/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pyopenstates/core.py b/src/pyopenstates/core.py index 23befa4..b66dcea 100644 --- a/src/pyopenstates/core.py +++ b/src/pyopenstates/core.py @@ -305,7 +305,6 @@ def get_legislator(leg_id): Args: leg_id: The Legislator's Open States ID - fields: An optional custom list of fields to return Returns: The requested :ref:`Legislator` details as a dictionary @@ -320,7 +319,7 @@ def locate_legislators(lat, lng, fields=None): Args: lat: Latitude - long: Longitude + lng: Longitude fields: An optional custom list of fields to return Returns: @@ -339,7 +338,6 @@ def search_districts(state, chamber): Args: state: The state to search in chamber: the upper or lower legislative chamber - fields: Optionally specify a custom list of fields to return Returns: A list of matching :ref:`District` dictionaries