We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6cecf commit 409e966Copy full SHA for 409e966
1 file changed
src/api/decorator.py
@@ -1,13 +1,15 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
+from typing import Callable
5
+
6
7
class classproperty:
8
""" Decorator for class properties.
9
Use @classproperty instead of @property to add properties
10
to the class object.
11
"""
- def __init__(self, fget):
12
+ def __init__(self, fget: Callable):
13
self.fget = fget
14
15
def __get__(self, owner_self, owner_cls):
0 commit comments