Skip to content

Commit 6720e24

Browse files
authored
Release 0.11.4 (#228)
* Release 0.11.4 * fix the version number
1 parent ade6619 commit 6720e24

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## [0.11.4] - 2022-08-12
6+
7+
### Fixed
8+
9+
- Fix a memory leak caused by `lru_cache` on methods. ([#227](https://github.com/sdispater/tomlkit/issues/227))
10+
511
## [0.11.3] - 2022-08-10
612

713
### Fixed
@@ -307,7 +313,8 @@
307313
- Fixed handling of super tables with different sections.
308314
- Fixed raw strings escaping.
309315

310-
[unreleased]: https://github.com/sdispater/tomlkit/compare/0.11.3...master
316+
[unreleased]: https://github.com/sdispater/tomlkit/compare/0.11.4...master
317+
[0.11.4]: https://github.com/sdispater/tomlkit/releases/tag/0.11.4
311318
[0.11.3]: https://github.com/sdispater/tomlkit/releases/tag/0.11.3
312319
[0.11.2]: https://github.com/sdispater/tomlkit/releases/tag/0.11.2
313320
[0.11.1]: https://github.com/sdispater/tomlkit/releases/tag/0.11.1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tomlkit"
3-
version = "0.11.3"
3+
version = "0.11.4"
44
description = "Style preserving TOML library"
55
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
66
license = "MIT"

tomlkit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from tomlkit.api import ws
2626

2727

28-
__version__ = "0.11.3"
28+
__version__ = "0.11.4"
2929
__all__ = [
3030
"aot",
3131
"array",

tomlkit/items.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from datetime import time
99
from datetime import tzinfo
1010
from enum import Enum
11-
from functools import lru_cache
1211
from typing import TYPE_CHECKING
1312
from typing import Any
1413
from typing import Collection
@@ -242,12 +241,6 @@ def item(
242241
raise ValueError(f"Invalid type {type(value)}")
243242

244243

245-
# This code is only valid for Python < 3.8, when @cached_property was introduced
246-
# it replaces chained @property and @lru_cache decorators
247-
def lazy_property(f):
248-
return property(lru_cache(maxsize=None)(f))
249-
250-
251244
class StringType(Enum):
252245
# Single Line Basic
253246
SLB = '"'
@@ -291,7 +284,7 @@ def invalid_sequences(self) -> Collection[str]:
291284
StringType.MLL: (forbidden_in_literal | {"'''"}) - allowed_in_multiline,
292285
}[self]
293286

294-
@lazy_property
287+
@property
295288
def unit(self) -> str:
296289
return self.value[0]
297290

@@ -320,7 +313,6 @@ class BoolType(Enum):
320313
TRUE = "true"
321314
FALSE = "false"
322315

323-
@lru_cache(maxsize=None) # noqa: B019
324316
def __bool__(self):
325317
return {BoolType.TRUE: True, BoolType.FALSE: False}[self]
326318

0 commit comments

Comments
 (0)