Skip to content

Commit

Permalink
Fix nox -rs lint-3.7.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Nov 7, 2023
1 parent cafdfae commit f4994e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test_opensearchpy/test_async/test_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
# under the License.


from unittest import IsolatedAsyncioTestCase
from unittest import IsolatedAsyncioTestCase # type: ignore

from opensearchpy._async.helpers.test import get_test_client
from opensearchpy.connection.async_connections import add_connection

from ...utils import wipe_cluster


class AsyncOpenSearchTestCase(IsolatedAsyncioTestCase):
class AsyncOpenSearchTestCase(IsolatedAsyncioTestCase): # type: ignore
async def asyncSetUp(self) -> None:
self.client = await get_test_client(
verify_certs=False, http_auth=("admin", "admin")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from __future__ import unicode_literals

from unittest import IsolatedAsyncioTestCase
from unittest import IsolatedAsyncioTestCase # type: ignore

import pytest
from _pytest.mark.structures import MarkDecorator
Expand All @@ -23,7 +23,7 @@
pytestmark: MarkDecorator = pytest.mark.asyncio


class TestSecurityPlugin(IsolatedAsyncioTestCase):
class TestSecurityPlugin(IsolatedAsyncioTestCase): # type: ignore
ROLE_NAME = "test-role"
ROLE_CONTENT = {
"cluster_permissions": ["cluster_monitor"],
Expand Down
2 changes: 1 addition & 1 deletion utils/build-dists.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


@contextlib.contextmanager # type: ignore
def set_tmp_dir() -> None: # type: ignore
def set_tmp_dir() -> None:
global tmp_dir
tmp_dir = tempfile.mkdtemp()
yield tmp_dir
Expand Down

0 comments on commit f4994e8

Please sign in to comment.