Skip to content

Commit

Permalink
backports.cached_property no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenFrankel committed Dec 11, 2024
1 parent 23e2718 commit 4e22d4d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 26 deletions.
13 changes: 1 addition & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ python = "<3.12,>=3.8"
singer-sdk = { version = "^0.31.1" }
fs-s3fs = { version = "^1.1.1", optional = true }
pymongo = "^4.4.1"
"backports.cached-property" = { version = "^1.0.2" }

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
Expand Down
8 changes: 1 addition & 7 deletions tap_mongodb/connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""MongoDB/DocumentDB connector utility"""

import sys
from functools import cached_property
from logging import Logger, getLogger
from typing import Any, Dict, List, Optional, Tuple

Expand All @@ -11,12 +11,6 @@

from tap_mongodb.schema import SCHEMA

if sys.version_info[:2] < (3, 8):
from backports.cached_property import cached_property
else:
from functools import cached_property


try:
from typing import TypeAlias # pylint: disable=ungrouped-imports

Expand Down
7 changes: 1 addition & 6 deletions tap_mongodb/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import json
import sys
from functools import cached_property
from typing import Any, Optional
from urllib.parse import quote_plus

Expand All @@ -13,11 +13,6 @@
from tap_mongodb.connector import MongoDBConnector
from tap_mongodb.streams import MongoDBCollectionStream

if sys.version_info[:2] >= (3, 7):
from backports.cached_property import cached_property
else:
from functools import cached_property


class TapMongoDB(Tap):
"""mongodb tap class."""
Expand Down

0 comments on commit 4e22d4d

Please sign in to comment.