Merge pull request #53 from eigenmagic/python3.8-support
Use __future__.annotations so type hints work with Python < 2.9
This commit is contained in:
commit
fa0ea9eb02
|
@ -1,6 +1,6 @@
|
||||||
"""A tool for managing federated Mastodon blocklists
|
"""A tool for managing federated Mastodon blocklists
|
||||||
"""
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
import argparse
|
import argparse
|
||||||
import toml
|
import toml
|
||||||
import csv
|
import csv
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Parse various blocklist data formats
|
"""Parse various blocklist data formats
|
||||||
"""
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
import csv
|
import csv
|
||||||
import json
|
import json
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
""" Constant objects used by FediBlockHole
|
""" Constant objects used by FediBlockHole
|
||||||
"""
|
"""
|
||||||
|
from __future__ import annotations
|
||||||
import enum
|
import enum
|
||||||
from typing import NamedTuple, Optional, TypedDict
|
from typing import NamedTuple, Optional, TypedDict
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
Loading…
Reference in New Issue