Skip to content

Commit

Permalink
fix: The generated stream schema is now cached
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 25, 2024
1 parent 94d9bd5 commit 8a4220d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tap_google_analytics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

import copy
import functools
import sys
import typing as t
from datetime import date, datetime, timedelta, timezone
Expand Down Expand Up @@ -296,7 +297,7 @@ def get_records(self, context: Context | None) -> t.Iterable[dict[str, t.Any]]:
"""
yield from self._request_records(context)

@property
@functools.cached_property
def schema(self) -> dict:
"""Return dictionary of record schema.
Expand Down

0 comments on commit 8a4220d

Please sign in to comment.