Skip to content

Commit

Permalink
Merge pull request #128 from Olen/124-type-annotation-issue-in-_spond…
Browse files Browse the repository at this point in the history
…baserequire_authentication

fix: Type annotation issue in `_SpondBase.require_authentication()`
  • Loading branch information
elliot-100 authored Jun 1, 2024
2 parents 61c592d + 2160f39 commit ed88d1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spond/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABC
from typing import Callable

import aiohttp

Expand All @@ -22,7 +23,8 @@ def auth_headers(self) -> dict:
"Authorization": f"Bearer {self.token}",
}

def require_authentication(func: callable):
@staticmethod
def require_authentication(func: Callable):
async def wrapper(self, *args, **kwargs):
if not self.token:
try:
Expand Down

0 comments on commit ed88d1e

Please sign in to comment.