descriptors.py 345 Bytes
Newer Older
dugupeiwen's avatar
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Target Descriptors
"""

from abc import ABCMeta, abstractmethod


class TargetDescriptor(metaclass=ABCMeta):

    def __init__(self, target_name):
        self._target_name = target_name

    @property
    @abstractmethod
    def typing_context(self):
        ...

    @property
    @abstractmethod
    def target_context(self):
        ...