Skip to content

Commit

Permalink
Removed unnecessary non-local
Browse files Browse the repository at this point in the history
  • Loading branch information
igo95862 committed Jun 11, 2022
1 parent 88f51fc commit a9c2534
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/sdbus/dbus_proxy_async_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ def property_decorator(
"Property setter can't be coroutine",
)

nonlocal property_name

new_wrapper: DbusPropertyAsync[T] = DbusPropertyAsync(
property_name,
property_signature,
Expand Down
1 change: 0 additions & 1 deletion src/sdbus/dbus_proxy_async_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ def dbus_signal_async(

def signal_decorator(
pseudo_function: Callable[[Any], T]) -> DbusSignalAsync[T]:
nonlocal signal_name

assert isinstance(pseudo_function, FunctionType)
return DbusSignalAsync(
Expand Down
1 change: 0 additions & 1 deletion src/sdbus/dbus_proxy_sync_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def property_decorator(
function: Callable[..., Any]
) -> DbusPropertySync[T]:
assert not iscoroutinefunction(function), "Expected regular function"
nonlocal property_name

new_wrapper: DbusPropertySync[T] = DbusPropertySync(
property_name,
Expand Down

0 comments on commit a9c2534

Please sign in to comment.