lib3to6.checker_base

src/lib3to6/checker_base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This file is part of the lib3to6 project
# https://github.com/mbarkhau/lib3to6
#
# Copyright (c) 2019-2021 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
# SPDX-License-Identifier: MIT
import ast

from . import common


class CheckerBase:

    # no info -> always apply
    version_info: common.VersionInfo = common.VersionInfo()

    def __call__(self, ctx: common.BuildContext, tree: ast.Module) -> None:
        raise NotImplementedError()