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:
Justin Warren 2023-07-09 07:52:32 +10:00 committed by GitHub
commit fa0ea9eb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
"""A tool for managing federated Mastodon blocklists
"""
from __future__ import annotations
import argparse
import toml
import csv

View File

@ -1,5 +1,6 @@
"""Parse various blocklist data formats
"""
from __future__ import annotations
import csv
import json
from typing import Iterable

View File

@ -1,5 +1,6 @@
""" Constant objects used by FediBlockHole
"""
from __future__ import annotations
import enum
from typing import NamedTuple, Optional, TypedDict
from dataclasses import dataclass