Skip to content

Commit

Permalink
use typing instead of typing_extensions
Browse files Browse the repository at this point in the history
The only thing we use from typing_extensions is Litral, which was
stabilized in python 3.8: https://peps.python.org/pep-0586/

This was a third party module and an undocumented dependency, so probably
good to get rid of it :)

Signed-off-by: Tycho Andersen <[email protected]>
  • Loading branch information
tych0 committed Mar 30, 2024
1 parent 4d0b3b2 commit ef5fb46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libqtile/confreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
if TYPE_CHECKING:
from typing import Any

from typing_extensions import Literal
from typing import Literal

from libqtile.config import Group, Key, Mouse, Rule, Screen
from libqtile.layout.base import Layout
Expand All @@ -43,7 +43,7 @@ class ConfigError(Exception):

config_pyi_header = """
from typing import Any
from typing_extensions import Literal
from typing import Literal
from libqtile.config import Group, Key, Mouse, Rule, Screen
from libqtile.layout.base import Layout
Expand Down
2 changes: 1 addition & 1 deletion libqtile/core/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
if TYPE_CHECKING:
from typing import Any, Callable

from typing_extensions import Literal
from typing import Literal

from libqtile.command.base import ItemT
from libqtile.confreader import Config
Expand Down

0 comments on commit ef5fb46

Please sign in to comment.