Skip to content

Commit

Permalink
Optional typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-csp committed Mar 11, 2024
1 parent 65e6faf commit 856224f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layout-per-window.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# manager or pip).

import sys
from typing import Optional

import i3ipc

Expand Down Expand Up @@ -53,7 +54,7 @@ def on_window(ipc: i3ipc.connection.Connection, event: i3ipc.events.WindowEvent)


if __name__ == "__main__":
default_layout: int = None
default_layout: Optional[int] = None
if len(sys.argv) == 2:
if sys.argv[1].isnumeric():
default_layout = int(sys.argv[1])
Expand Down

0 comments on commit 856224f

Please sign in to comment.