Skip to content

Commit

Permalink
fix: ruff formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
RFCreate committed Jan 17, 2025
1 parent e484776 commit a35e273
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion wlroots/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from __future__ import annotations

import contextlib
from typing import Iterator, Union
from collections.abc import Iterator
from typing import Union

from pywayland.server import Display

Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .matrix import Matrix

if TYPE_CHECKING:
from typing import Iterator
from collections.abc import Iterator

from wlroots.allocator import Allocator
from wlroots.renderer import Renderer
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/output_management_v1.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Matt Colligan 2021
from __future__ import annotations

from typing import Iterator
from collections.abc import Iterator

from pywayland.protocol.wayland import WlOutput
from pywayland.server import Display, Signal
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from wlroots.wlr_types import OutputLayoutOutput, Surface

if TYPE_CHECKING:
from typing import Iterator
from collections.abc import Iterator

from wlroots.util.box import Box
from wlroots.util.clock import Timespec
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/seat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Iterator
from collections.abc import Iterator
from weakref import WeakKeyDictionary

from pywayland.protocol.wayland import WlSeat
Expand Down
2 changes: 0 additions & 2 deletions wlroots/wlr_types/session_lock_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@


class SessionLockManagerV1(PtrHasData):

def __init__(self, display: Display) -> None:
self._ptr = lib.wlr_session_lock_manager_v1_create(display._ptr)
self.new_lock_event = Signal(
Expand All @@ -41,7 +40,6 @@ def __init__(self, display: Display) -> None:


class SessionLockV1(PtrHasData):

def __init__(self, ptr):
self._ptr = ffi.cast("struct wlr_session_lock_v1 *", ptr)
self.new_surface_event = Signal(
Expand Down
1 change: 0 additions & 1 deletion wlroots/wlr_types/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def base(self) -> InputDevice:


class SwitchToggleEvent(Ptr):

def __init__(self, ptr):
self._ptr = ptr

Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/virtual_pointer_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Iterable
from collections.abc import Iterable
from weakref import WeakKeyDictionary

from pywayland.protocol.wayland.wl_pointer import WlPointer
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/xcursor_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from wlroots import Ptr, ffi, lib

if TYPE_CHECKING:
from typing import Iterator
from collections.abc import Iterator


class XCursorManager(Ptr):
Expand Down

0 comments on commit a35e273

Please sign in to comment.