File tree 4 files changed +11
-12
lines changed
4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
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
+
5
11
## [ 0.11.3] - 2022-08-10
6
12
7
13
### Fixed
307
313
- Fixed handling of super tables with different sections.
308
314
- Fixed raw strings escaping.
309
315
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
311
318
[ 0.11.3 ] : https://github.com/sdispater/tomlkit/releases/tag/0.11.3
312
319
[ 0.11.2 ] : https://github.com/sdispater/tomlkit/releases/tag/0.11.2
313
320
[ 0.11.1 ] : https://github.com/sdispater/tomlkit/releases/tag/0.11.1
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " tomlkit"
3
- version = " 0.11.3 "
3
+ version = " 0.11.4 "
4
4
description = " Style preserving TOML library"
5
5
authors = [" Sébastien Eustace <sebastien@eustace.io>" ]
6
6
license = " MIT"
Original file line number Diff line number Diff line change 25
25
from tomlkit .api import ws
26
26
27
27
28
- __version__ = "0.11.3 "
28
+ __version__ = "0.11.4 "
29
29
__all__ = [
30
30
"aot" ,
31
31
"array" ,
Original file line number Diff line number Diff line change 8
8
from datetime import time
9
9
from datetime import tzinfo
10
10
from enum import Enum
11
- from functools import lru_cache
12
11
from typing import TYPE_CHECKING
13
12
from typing import Any
14
13
from typing import Collection
@@ -242,12 +241,6 @@ def item(
242
241
raise ValueError (f"Invalid type { type (value )} " )
243
242
244
243
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
-
251
244
class StringType (Enum ):
252
245
# Single Line Basic
253
246
SLB = '"'
@@ -291,7 +284,7 @@ def invalid_sequences(self) -> Collection[str]:
291
284
StringType .MLL : (forbidden_in_literal | {"'''" }) - allowed_in_multiline ,
292
285
}[self ]
293
286
294
- @lazy_property
287
+ @property
295
288
def unit (self ) -> str :
296
289
return self .value [0 ]
297
290
@@ -320,7 +313,6 @@ class BoolType(Enum):
320
313
TRUE = "true"
321
314
FALSE = "false"
322
315
323
- @lru_cache (maxsize = None ) # noqa: B019
324
316
def __bool__ (self ):
325
317
return {BoolType .TRUE : True , BoolType .FALSE : False }[self ]
326
318
You can’t perform that action at this time.
0 commit comments