We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a7f58 commit 398c60dCopy full SHA for 398c60d
1 file changed
src/lpdb/session.py
@@ -1,5 +1,6 @@
1
from abc import abstractmethod, ABC
2
from datetime import date
3
+from functools import cache
4
from http import HTTPStatus
5
from typing import (
6
Any,
@@ -101,6 +102,7 @@ class AbstractLpdbSession(ABC):
101
102
def __init__(self, api_key: str):
103
self.__api_key = re.sub(r"^ApiKey ", "", api_key)
104
105
+ @cache
106
def _get_header(self) -> dict[str, str]:
107
return {
108
"authorization": f"Apikey {self.__api_key}",
0 commit comments