Skip to content

Commit

Permalink
collections.abc.Mapping instead of deprecated typing.Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
edvardm committed Jul 16, 2024
1 parent 7e53468 commit 54239c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audit_log/headers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import typing
from collections.abc import Mapping
from dataclasses import dataclass
from urllib.parse import urlparse

Expand Down Expand Up @@ -66,7 +66,7 @@ def parse_spiffe(xfcc_header: str) -> ParsedSPIFFE:


def get_principal_from_headers(
headers: typing.Mapping[str, str],
headers: Mapping[str, str],
) -> Principal:
"""Get principal from headers, supports mTLS, headers set in Istio, and JWTs.
Expand Down

0 comments on commit 54239c8

Please sign in to comment.