Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 30, 2024
1 parent c267283 commit 5e25b0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pymongo/compression_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _have_zlib() -> bool:

def _have_zstd() -> bool:
try:
import zstandard # type:ignore[import] # noqa: F401
import zstandard # noqa: F401

return True
except ImportError:
Expand Down Expand Up @@ -122,7 +122,7 @@ class SnappyContext:

@staticmethod
def compress(data: bytes) -> bytes:
import snappy # type:ignore[import]
import snappy

return snappy.compress(data)

Expand Down
2 changes: 1 addition & 1 deletion pymongo/pyopenssl_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ipaddress import ip_address as _ip_address
from typing import TYPE_CHECKING, Any, Callable, Optional, TypeVar, Union

import cryptography.x509 as x509 # type:ignore[import]
import cryptography.x509 as x509
from OpenSSL import SSL as _SSL
from OpenSSL import crypto as _crypto

Expand Down
2 changes: 1 addition & 1 deletion pymongo/srv_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

def _have_dnspython() -> bool:
try:
import dns # type:ignore[import] # noqa: F401
import dns # noqa: F401

return True
except ImportError:
Expand Down

0 comments on commit 5e25b0e

Please sign in to comment.