File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## [ 0.12.1] - 2023-07-27
4+
5+ ### Fixed
6+
7+ - Make float and int hashable.
8+
39## [ 0.12.0] - 2023-07-27
410
511### Added
359365- Fixed handling of super tables with different sections.
360366- Fixed raw strings escaping.
361367
362- [ unreleased ] : https://github.com/sdispater/tomlkit/compare/0.12.0...master
368+ [ unreleased ] : https://github.com/sdispater/tomlkit/compare/0.12.1...master
369+ [ 0.12.1 ] : https://github.com/sdispater/tomlkit/releases/tag/0.12.1
363370[ 0.12.0 ] : https://github.com/sdispater/tomlkit/releases/tag/0.12.0
364371[ 0.11.8 ] : https://github.com/sdispater/tomlkit/releases/tag/0.11.8
365372[ 0.11.7 ] : https://github.com/sdispater/tomlkit/releases/tag/0.11.7
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " tomlkit"
3- version = " 0.12.0 "
3+ version = " 0.12.1 "
44description = " Style preserving TOML library"
55authors = [
66 " Sébastien Eustace <[email protected] >" ,
Original file line number Diff line number Diff line change 2727from tomlkit .api import ws
2828
2929
30- __version__ = "0.12.0 "
30+ __version__ = "0.12.1 "
3131__all__ = [
3232 "aot" ,
3333 "array" ,
Original file line number Diff line number Diff line change @@ -612,6 +612,9 @@ def unwrap(self) -> int:
612612
613613 __int__ = unwrap
614614
615+ def __hash__ (self ) -> int :
616+ return hash (self .unwrap ())
617+
615618 @property
616619 def discriminant (self ) -> int :
617620 return 2
@@ -693,6 +696,9 @@ def unwrap(self) -> float:
693696
694697 __float__ = unwrap
695698
699+ def __hash__ (self ) -> int :
700+ return hash (self .unwrap ())
701+
696702 @property
697703 def discriminant (self ) -> int :
698704 return 3
You can’t perform that action at this time.
0 commit comments