|
2 | 2 | import threading |
3 | 3 | from datetime import datetime, timedelta |
4 | 4 | from json import dumps |
5 | | -from typing import Any, Dict, Generator, Iterable, List, Literal, Mapping, NoReturn, Optional, Sequence, Tuple |
| 5 | +from typing import Any, Dict, Generator, Iterable, List, Mapping, Optional, Tuple |
6 | 6 |
|
7 | 7 | import pkg_resources |
8 | 8 | import pyramid.httpexceptions as exc |
|
23 | 23 | from pyff.logs import get_log |
24 | 24 | from pyff.pipes import plumbing |
25 | 25 | from pyff.repo import MDRepository |
26 | | -from pyff.resource import Resource, ResourceInfo |
| 26 | +from pyff.resource import Resource |
27 | 27 | from pyff.samlmd import entity_display_name |
28 | | -from pyff.utils import b2u, dumptree, duration2timedelta, hash_id, json_serializer, utc_now |
| 28 | +from pyff.utils import b2u, dumptree, hash_id, json_serializer, utc_now |
29 | 29 |
|
30 | 30 | log = get_log(__name__) |
31 | 31 |
|
@@ -86,7 +86,7 @@ class MediaAccept(object): |
86 | 86 | def __init__(self, accept: str): |
87 | 87 | self._type = AcceptableType(accept) |
88 | 88 |
|
89 | | - def has_key(self, key: Any) -> Literal[True]: |
| 89 | + def has_key(self, key: Any) -> bool: # Literal[True]: |
90 | 90 | return True |
91 | 91 |
|
92 | 92 | def get(self, item: Any) -> Any: |
|
0 commit comments