Merge .pyi type stubs inline (#563)

* Merged types into .py code.

Signed-off-by: dblock <[email protected]>

* Fix: nox -rs generate.

Signed-off-by: dblock <[email protected]>

* Updated CHANGELOG.

Signed-off-by: dblock <[email protected]>

* Use lowest common python version for lint.

Signed-off-by: dblock <[email protected]>

* Fix: don't typeshed.

Signed-off-by: dblock <[email protected]>

* Removed unneeded comment.

Signed-off-by: dblock <[email protected]>

* Simplify OPENSEARCH_URL.

Signed-off-by: dblock <[email protected]>

* Fix: positional ignore_status used as chunk_size.

Signed-off-by: dblock <[email protected]>

* Fix: parse version string.

Signed-off-by: dblock <[email protected]>

* Remove future annotations for Python 3.6.

Signed-off-by: dblock <[email protected]>

* Fix: types in documentation.

Signed-off-by: dblock <[email protected]>

* Improve CHANGELOG text.

Signed-off-by: dblock <[email protected]>

* Re-added missing separator.

Signed-off-by: dblock <[email protected]>

* Remove duplicate licenses.

Signed-off-by: dblock <[email protected]>

* Get rid of Optional[Any].

Signed-off-by: dblock <[email protected]>

* Fix docs with AsyncOpenSearch.

Signed-off-by: dblock <[email protected]>

* Fix: undo comment.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
This commit is contained in:
Daniel (dB.) Doubrovkine
2023-11-06 10:08:19 -08:00
committed by GitHub
parent 0d8a23dd78
commit dcb79cc322
268 changed files with 6218 additions and 16378 deletions
@@ -39,7 +39,7 @@ class TestAlertingPlugin(OpenSearchTestCase):
(OPENSEARCH_VERSION) and (OPENSEARCH_VERSION < (2, 0, 0)),
"Plugin not supported for opensearch version",
)
def test_get_destination(self):
def test_get_destination(self) -> None:
# Create a dummy destination
self.test_create_destination()
@@ -119,7 +119,7 @@ class TestAlertingPlugin(OpenSearchTestCase):
(OPENSEARCH_VERSION) and (OPENSEARCH_VERSION < (2, 0, 0)),
"Plugin not supported for opensearch version",
)
def test_search_monitor(self):
def test_search_monitor(self) -> None:
# Create a dummy monitor
self.test_create_monitor()
@@ -137,7 +137,7 @@ class TestAlertingPlugin(OpenSearchTestCase):
(OPENSEARCH_VERSION) and (OPENSEARCH_VERSION < (2, 0, 0)),
"Plugin not supported for opensearch version",
)
def test_get_monitor(self):
def test_get_monitor(self) -> None:
# Create a dummy monitor
self.test_create_monitor()
@@ -161,7 +161,7 @@ class TestAlertingPlugin(OpenSearchTestCase):
(OPENSEARCH_VERSION) and (OPENSEARCH_VERSION < (2, 0, 0)),
"Plugin not supported for opensearch version",
)
def test_run_monitor(self):
def test_run_monitor(self) -> None:
# Create a dummy monitor
self.test_create_monitor()
@@ -64,7 +64,7 @@ class TestIndexManagementPlugin(OpenSearchTestCase):
}
}
def test_create_policy(self):
def test_create_policy(self) -> None:
# Test to create policy
response = self.client.index_management.put_policy(
policy=self.POLICY_NAME, body=self.POLICY_CONTENT
@@ -73,7 +73,7 @@ class TestIndexManagementPlugin(OpenSearchTestCase):
self.assertNotIn("errors", response)
self.assertIn("_id", response)
def test_get_policy(self):
def test_get_policy(self) -> None:
# Create a policy
self.test_create_policy()
@@ -84,7 +84,7 @@ class TestIndexManagementPlugin(OpenSearchTestCase):
self.assertIn("_id", response)
self.assertEqual(response["_id"], self.POLICY_NAME)
def test_update_policy(self):
def test_update_policy(self) -> None:
# Create a policy
self.test_create_policy()
@@ -106,7 +106,7 @@ class TestIndexManagementPlugin(OpenSearchTestCase):
self.assertNotIn("errors", response)
self.assertIn("_id", response)
def test_delete_policy(self):
def test_delete_policy(self) -> None:
# Create a policy
self.test_create_policy()