nebius/SWE-bench-extra huggingface dataset:
Repository: smartystreets/smartystreets-python-sdk

Issue:
Handle the new `dpv_no_stat` in the analysis object
SmartyStreets has an `active` field. It recently started reporting all addresses as "active" due to problems with the underlying USPS data and now reports that information in the `dpv_no_stat` field. (See [here](https://smartystreets.com/articles/what-is-an-inactive-no-stat-address) for more.) This package should provide the new `dpv_no_stat` field for interested users.

Comments:

Patch:
diff --git a/smartystreets_python_sdk/us_street/analysis.py b/smartystreets_python_sdk/us_street/analysis.py
index 841ebd4..e442a2e 100644
--- a/smartystreets_python_sdk/us_street/analysis.py
+++ b/smartystreets_python_sdk/us_street/analysis.py
@@ -8,6 +8,7 @@ class Analysis:
         self.cmra = obj.get('dpv_cmra', None)
         self.vacant = obj.get('dpv_vacant', None)
         self.active = obj.get('active', None)
+        self.dpv_no_stat = obj.get('dpv_no_stat', None)
         self.is_ews_match = obj.get('ews_match', DeprecationWarning)
         self.footnotes = obj.get('footnotes', None)
         self.lacs_link_code = obj.get('lacslink_code', None)


Test patch:
diff --git a/test/us_street/client_test.py b/test/us_street/client_test.py
index 41ca54f..46095c0 100644
--- a/test/us_street/client_test.py
+++ b/test/us_street/client_test.py
@@ -156,6 +156,7 @@ class TestClient(unittest.TestCase):
                     "dpv_cmra": "Y",
                     "dpv_vacant": "N",
                     "active": "Y",
+                    "dpv_no_stat": "N",
                     "footnotes": "footnotes",
                     "lacslink_code": "lacslink_code",
                     "lacslink_indicator": "lacslink_indicator",
@@ -214,6 +215,7 @@ class TestClient(unittest.TestCase):
         self.assertEqual(actual_candidate.analysis.cmra, "Y")
         self.assertEqual(actual_candidate.analysis.vacant, "N")
         self.assertEqual(actual_candidate.analysis.active, "Y")
+        self.assertEqual(actual_candidate.analysis.dpv_no_stat, "N")
         self.assertEqual(actual_candidate.analysis.footnotes, "footnotes")
         self.assertEqual(actual_candidate.analysis.lacs_link_code, "lacslink_code")
         self.assertEqual(actual_candidate.analysis.lacs_link_indicator, "lacslink_indicator")