Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2007-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2007-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from setuptools import find_packages, setup
Expand All @@ -12,4 +12,5 @@
author_email='dev@wazo.community',
url='http://wazo.community',
packages=find_packages(),
package_data={'xivo': ['py.typed']},
)
4 changes: 2 additions & 2 deletions xivo/http_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json
import re
import time
from collections.abc import Iterable
from collections.abc import Iterable, MutableMapping
from json.decoder import JSONDecodeError
from logging import Logger
from typing import TYPE_CHECKING, Any
Expand Down Expand Up @@ -42,7 +42,7 @@ def __call__(
return self.app(environ, start_response)


def reverse_proxy_fix_api_spec(api_spec: dict[str, Any]) -> None:
def reverse_proxy_fix_api_spec(api_spec: MutableMapping[str, Any]) -> None:
prefix = request.headers.get('X-Script-Name')
if prefix:
api_spec['schemes'] = ['https']
Expand Down
Empty file added xivo/py.typed
Empty file.