Skip to content

Commit 7cb02b9

Browse files
committed
Bump version: 1.8.0 → 1.9.0
1 parent 2c623eb commit 7cb02b9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/changelog.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Changelog
22
---------
33

4-
1.9.0 (Unreleased)
4+
1.9.0 (Feb 08, 2025)
55
==================
66

7-
- Fix ``CPATH/C_INCLUDE_PATH`` being ignored during build.
7+
- Fix for ``CPATH/C_INCLUDE_PATH`` being ignored during build.
88

9-
- Slightly faster reading of events.
9+
- Slightly faster reading of events in ``device.read()`` and ``device.read_one()``.
1010

11-
- Fix build on FreeBSD.
11+
- Fix FreeBSD support.
1212

1313
- Drop deprecated ``InputDevice.fn`` (use ``InputDevice.path`` instead).
1414

15-
- More type hints.
15+
- Improve type hint coverage and add a ``py.typed`` file to the sdist.
1616

1717

1818
1.8.0 (Jan 25, 2025)

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
# built documents.
6666
#
6767
# The full version, including alpha/beta/rc tags.
68-
release = "1.8.0"
68+
release = "1.9.0"
6969

7070
# The short X.Y version.
7171
version = release

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "evdev"
7-
version = "1.8.0"
7+
version = "1.9.0"
88
description = "Bindings to the Linux input handling subsystem"
99
keywords = ["evdev", "input", "uinput"]
1010
readme = "README.md"
@@ -36,7 +36,7 @@ line-length = 120
3636
ignore = ["E265", "E241", "F403", "F401", "E401", "E731"]
3737

3838
[tool.bumpversion]
39-
current_version = "1.8.0"
39+
current_version = "1.9.0"
4040
commit = true
4141
tag = true
4242
allow_dirty = true

src/evdev/eventio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import functools
33
import os
44
import select
5-
from typing import Iterator
5+
from typing import Iterator, Union
66

77
from . import _input, _uinput, ecodes
88
from .events import InputEvent
@@ -46,7 +46,7 @@ def read_loop(self) -> Iterator[InputEvent]:
4646
for event in self.read():
4747
yield event
4848

49-
def read_one(self) -> InputEvent:
49+
def read_one(self) -> Union[InputEvent, None]:
5050
"""
5151
Read and return a single input event as an instance of
5252
:class:`InputEvent <evdev.events.InputEvent>`.

0 commit comments

Comments
 (0)