Skip to content

Commit

Permalink
fix: The generated stream schema is now cached (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 25, 2024
1 parent c013f13 commit 0d15f2c
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 0d15f2c

Please sign in to comment.