Skip to content

Commit

Permalink
Add accurate type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelorenzo authored Oct 15, 2020
1 parent 389b294 commit 8be412b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpris_server/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See: https://www.freedesktop.org/wiki/Specifications/mpris-spec/metadata/
import logging
from random import choices
from typing import Dict, Tuple, Any, Callable
from typing import Dict, Tuple, Any, Callable, Optional
from functools import wraps

from gi.repository.GLib import Variant
Expand Down Expand Up @@ -63,7 +63,7 @@ def new_func(*args, **kwargs) -> str:

@enforce_dbus_length
def get_dbus_name(
name: str = None,
name: Optional[str] = None,
is_interface: bool = False
) -> str:
if not name:
Expand Down

0 comments on commit 8be412b

Please sign in to comment.