Skip to content

Commit 0054f69

Browse files
committed
style: fix future-rewritable-type-annotation (FA100)
1 parent 87165ff commit 0054f69

36 files changed

Lines changed: 36 additions & 0 deletions

httoop/authentication/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
23
import re
34
from typing import Any, Dict, List, Tuple, Union
45

httoop/authentication/basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3+
from __future__ import annotations
34
from binascii import Error as Base64Error
45
from typing import Dict, Union
56

httoop/authentication/digest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3+
from __future__ import annotations
34
from hashlib import md5, sha256
45
from typing import Callable, Dict, List, Tuple, Union
56

httoop/codecs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
u"""Module containing various codecs which are
33
common used in combination with HTTP.
44
"""
5+
from __future__ import annotations
56

67
import inspect
78
from typing import Any, Type

httoop/codecs/application/hal_json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""JSON Hypertext Application Language (application/hal+json) codec."""
33

44
from __future__ import absolute_import
5+
from __future__ import annotations
56

67
from typing import Any, Dict, Iterator, List, Optional, Union
78

httoop/codecs/application/json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
3+
from __future__ import annotations
34

45
from json import dumps as json_encode, loads as json_decode
56
from typing import Any, Dict, Optional, Union

httoop/codecs/application/x_www_form_urlencoded.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
23
from typing import Any, List, Optional, Tuple, Union
34

45
from httoop.codecs.codec import Codec

httoop/codecs/application/zlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
from __future__ import absolute_import
4+
from __future__ import annotations
45

56
import zlib
67
from typing import Optional

httoop/codecs/codec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
23

34
from typing import Any
45

httoop/codecs/message/http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
3+
from __future__ import annotations
34

45
from typing import Optional, Union
56

0 commit comments

Comments
 (0)