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:
@@ -32,7 +32,7 @@ from .test_cases import TestCase
|
||||
|
||||
|
||||
class TestTransformError(TestCase):
|
||||
def test_transform_error_parse_with_error_reason(self):
|
||||
def test_transform_error_parse_with_error_reason(self) -> None:
|
||||
e = TransportError(
|
||||
500,
|
||||
"InternalServerError",
|
||||
@@ -43,7 +43,7 @@ class TestTransformError(TestCase):
|
||||
str(e), "TransportError(500, 'InternalServerError', 'error reason')"
|
||||
)
|
||||
|
||||
def test_transform_error_parse_with_error_string(self):
|
||||
def test_transform_error_parse_with_error_string(self) -> None:
|
||||
e = TransportError(
|
||||
500, "InternalServerError", {"error": "something error message"}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user