Skip to content

Commit 71bb23f

Browse files
committed
v1.0.0 — Type annotations and breaking changes
- Support Python 3.10, 3.11, and 3.12 - Drop support for Python 3.6 and 3.7 - **Breaking**: The `move_first` argument has been removed. Only the `move_first=False` semantics are retained. - Removed the `readall()` method. I don't think it ever worked. - **Breaking**: The `delay_open` argument and `open()` method have been removed. Filehandles will now always be created at the moment an in-place instance is constructed, just like when calling the standard library's `open()`. - **Breaking**: When the input path points to a symlink and `backup_ext` is given, the backup extension will now be appended to the resolved path rather than to the pre-resolved path. - Added type annotations - `InPlaceText` and `InPlaceBytes` (deprecated in v0.4.0) have been removed Added `read1()` and `readinto1()` methods for binary mode - The `InPlace` constructor now immediately raises a `ValueError` if `backup` is the empty string
1 parent 9ec96d8 commit 71bb23f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
v1.0.0 (in development)
2-
-----------------------
1+
v1.0.0 (2023-10-12)
2+
-------------------
33
- Support Python 3.10, 3.11, and 3.12
44
- Drop support for Python 3.6 and 3.7
55
- **Breaking**: The `move_first` argument has been removed. Only the

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2021 John Thorvald Wodder II
3+
Copyright (c) 2016-2023 John Thorvald Wodder II
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/in_place/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if TYPE_CHECKING:
2222
from typing_extensions import Buffer
2323

24-
__version__ = "1.0.0.dev1"
24+
__version__ = "1.0.0"
2525
__author__ = "John Thorvald Wodder II"
2626
__author_email__ = "[email protected]"
2727
__license__ = "MIT"

0 commit comments

Comments
 (0)