Skip to content

Commit

Permalink
fix: remove deprecated no_type_check_decorator (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Oct 5, 2024
1 parent f2de447 commit 0f04a79
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/dbus_fast/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
import copy
import inspect
from functools import wraps
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
List,
Optional,
Set,
Tuple,
no_type_check_decorator,
)
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Set, Tuple

from . import introspection as intr
from ._private.util import (
Expand Down Expand Up @@ -109,7 +99,6 @@ def echo_two(self, val1: 's', val2: 'u') -> 'su':
if type(disabled) is not bool:
raise TypeError("disabled must be a bool")

@no_type_check_decorator
def decorator(fn):
@wraps(fn)
def wrapped(*args, **kwargs):
Expand Down Expand Up @@ -184,7 +173,6 @@ def two_strings_signal(self, val1, val2) -> 'ss':
if type(disabled) is not bool:
raise TypeError("disabled must be a bool")

@no_type_check_decorator
def decorator(fn):
fn_name = name if name else fn.__name__
signal = _Signal(fn, fn_name, disabled)
Expand Down Expand Up @@ -318,7 +306,6 @@ def string_prop(self, val: 's'):
if type(disabled) is not bool:
raise TypeError("disabled must be a bool")

@no_type_check_decorator
def decorator(fn):
options = {"name": name, "access": access, "disabled": disabled}
return _Property(fn, options=options)
Expand Down

0 comments on commit 0f04a79

Please sign in to comment.