Hello community,

here is the log from the commit of package python-tomlkit for openSUSE:Factory 
checked in at 2020-08-01 12:30:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tomlkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-tomlkit.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tomlkit"

Sat Aug  1 12:30:29 2020 rev:5 rq:822437 version:0.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tomlkit/python-tomlkit.changes    
2020-03-27 00:21:33.632143230 +0100
+++ /work/SRC/openSUSE:Factory/.python-tomlkit.new.3592/python-tomlkit.changes  
2020-08-01 12:30:40.090428171 +0200
@@ -1,0 +2,6 @@
+Thu Jul 23 14:15:23 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to version 0.6.0
+  * Added support for heterogeneous arrays
+
+-------------------------------------------------------------------

Old:
----
  tomlkit-0.5.11.tar.gz

New:
----
  tomlkit-0.6.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-tomlkit.spec ++++++
--- /var/tmp/diff_new_pack.DXXl5b/_old  2020-08-01 12:30:41.818429788 +0200
+++ /var/tmp/diff_new_pack.DXXl5b/_new  2020-08-01 12:30:41.822429792 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-tomlkit
-Version:        0.5.11
+Version:        0.6.0
 Release:        0
 Summary:        Style preserving TOML library
 License:        MIT

++++++ tomlkit-0.5.11.tar.gz -> tomlkit-0.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/PKG-INFO new/tomlkit-0.6.0/PKG-INFO
--- old/tomlkit-0.5.11/PKG-INFO 2020-02-29 18:21:32.805722000 +0100
+++ new/tomlkit-0.6.0/PKG-INFO  2020-04-15 13:57:47.323125000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tomlkit
-Version: 0.5.11
+Version: 0.6.0
 Summary: Style preserving TOML library
 Home-page: https://github.com/sdispater/tomlkit
 License: MIT
@@ -42,7 +42,7 @@
 
 # TOML Kit - Style-preserving TOML library for Python
 
-TOML Kit is a **0.5.0-compliant** [TOML](https://github.com/toml-lang/toml) 
library.
+TOML Kit is a **1.0.0rc1-compliant** [TOML](https://github.com/toml-lang/toml) 
library.
 
 It includes a parser that preserves all comments, indentations, whitespace and 
internal element ordering,
 and makes them accessible and editable via an intuitive API.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/README.md new/tomlkit-0.6.0/README.md
--- old/tomlkit-0.5.11/README.md        2018-11-07 01:09:23.300364300 +0100
+++ new/tomlkit-0.6.0/README.md 2020-04-15 13:28:44.796336400 +0200
@@ -18,7 +18,7 @@
 
 # TOML Kit - Style-preserving TOML library for Python
 
-TOML Kit is a **0.5.0-compliant** [TOML](https://github.com/toml-lang/toml) 
library.
+TOML Kit is a **1.0.0rc1-compliant** [TOML](https://github.com/toml-lang/toml) 
library.
 
 It includes a parser that preserves all comments, indentations, whitespace and 
internal element ordering,
 and makes them accessible and editable via an intuitive API.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/pyproject.toml 
new/tomlkit-0.6.0/pyproject.toml
--- old/tomlkit-0.5.11/pyproject.toml   2020-02-29 18:21:26.120309000 +0100
+++ new/tomlkit-0.6.0/pyproject.toml    2020-04-15 13:27:59.729676500 +0200
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "tomlkit"
-version = "0.5.11"
+version = "0.6.0"
 description = "Style preserving TOML library"
 authors = ["Sébastien Eustace <[email protected]>"]
 license = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/setup.py new/tomlkit-0.6.0/setup.py
--- old/tomlkit-0.5.11/setup.py 2020-02-29 18:21:32.805093000 +0100
+++ new/tomlkit-0.6.0/setup.py  2020-04-15 13:57:47.322600000 +0200
@@ -22,9 +22,9 @@
 
 setup_kwargs = {
     'name': 'tomlkit',
-    'version': '0.5.11',
+    'version': '0.6.0',
     'description': 'Style preserving TOML library',
-    'long_description': '[github_release]: 
https://img.shields.io/github/release/sdispater/tomlkit.svg?logo=github&logoColor=white\n[pypi_version]:
 
https://img.shields.io/pypi/v/tomlkit.svg?logo=python&logoColor=white\n[python_versions]:
 
https://img.shields.io/pypi/pyversions/tomlkit.svg?logo=python&logoColor=white\n[github_license]:
 
https://img.shields.io/github/license/sdispater/tomlkit.svg?logo=github&logoColor=white\n[travisci]:
 
https://img.shields.io/travis/com/sdispater/tomlkit/master.svg?logo=travis&logoColor=white&label=Travis%20CI\n[appveyor]:
 
https://img.shields.io/appveyor/ci/sdispater/tomlkit/master.svg?logo=appveyor&logoColor=white&label=AppVeyor\n<!--Codecov
 logo not offered by shields.io or simpleicons.org, this is Codecov\'s SVG 
image modified to be white-->\n[codecov]: 
https://img.shields.io/codecov/c/github/sdispater/tomlkit/master.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSI0MDIiIHdpZHRoPSI1ODIiIHk9Ii0xIiB4PSItMSIvPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxwYXRoIGlkPSJzdmdfMSIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmZmZmIiBkPSJtMjUu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00LjY3OSAtMTAuOTkxLC03LjI1NSAtMTcuNjcyLC03LjI1NSIvPgogPC9nPgo8L3N2Zz4=&label=Codecov\n\n[![GitHub
 
Release][github_release]](https://github.com/sdispater/tomlkit/releases/)\n[![PyPI
 Version][pypi_version]](https://pypi.python.org/pypi/tomlkit/)\n[![Python 
Versions][python_versions]](https://pypi.python.org/pypi/tomlkit/)\n[![License][github_license]](https://github.com/sdispater/tomlkit/blob/master/LICENSE)\n<br>\n[![Travis
 
CI][travisci]](https://travis-ci.com/sdispater/tomlkit)\n[![AppVeyor][appveyor]](https://ci.appveyor.com/project/sdispater/tomlkit)\n[![Codecov][codecov]](https://codecov.io/gh/sdispater/tomlkit)\n\n#
 TOML Kit - Style-preserving TOML library for Python\n\nTOML Kit is a 
**0.5.0-compliant** [TOML](https://github.com/toml-lang/toml) library.\n\nIt 
includes a parser that preserves all comments, indentations, whitespace and 
internal element ordering,\nand makes them accessible and editable via an 
intuitive API.\n\nYou can also create new TOML documents from scratch using the 
provided helpers.\n\nPart of the implementation as been adapted, improved and 
fixed from [Molten](https://github.com/LeopoldArkham/Molten).\n\n## 
Usage\n\n### Parsing\n\nTOML Kit comes with a fast and style-preserving parser 
to help you access\nthe content of TOML files and strings.\n\n```python\n>>> 
from tomlkit import dumps\n>>> from tomlkit import parse  # you can also use 
loads\n\n>>> content = """[table]\n... foo = "bar"  # String\n... """\n>>> doc 
= parse(content)\n\n# doc is a TOMLDocument instance that holds all the 
information\n# about the TOML string.\n# It behaves like a standard 
dictionary.\n\n>>> assert doc["table"]["foo"] == "bar"\n\n# The string 
generated from the document is exactly the same\n# as the original string\n>>> 
assert dumps(doc) == content\n```\n\n### Modifying\n\nTOML Kit provides an 
intuitive API to modify TOML documents.\n\n```python\n>>> from tomlkit import 
dumps\n>>> from tomlkit import parse\n>>> from tomlkit import table\n\n>>> doc 
= parse("""[table]\n... foo = "bar"  # String\n... """)\n\n>>> 
doc["table"]["baz"] = 13\n\n>>> dumps(doc)\n"""[table]\nfoo = "bar"  # 
String\nbaz = 13\n"""\n\n# Add a new table\n>>> tab = table()\n>>> 
tab.add("array", [1, 2, 3])\n\n>>> doc["table2"] = tab\n\n>>> 
dumps(doc)\n"""[table]\nfoo = "bar"  # String\nbaz = 13\n\n[table2]\narray = 
[1, 2, 3]\n"""\n\n# Remove the newly added table\n>>> doc.remove("table2")\n# 
del doc["table2] is also possible\n```\n\n### Writing\n\nYou can also write a 
new TOML document from scratch.\n\nLet\'s say we want to create this following 
document:\n\n```toml\n# This is a TOML document.\n\ntitle = "TOML 
Example"\n\n[owner]\nname = "Tom Preston-Werner"\norganization = "GitHub"\nbio 
= "GitHub Cofounder & CEO\\nLikes tater tots and beer."\ndob = 
1979-05-27T07:32:00Z # First class dates? Why not?\n\n[database]\nserver = 
"192.168.1.1"\nports = [ 8001, 8001, 8002 ]\nconnection_max = 5000\nenabled = 
true\n```\n\nIt can be created with the following code:\n\n```python\n>>> from 
tomlkit import comment\n>>> from tomlkit import document\n>>> from tomlkit 
import nl\n>>> from tomlkit import table\n\n>>> doc = document()\n>>> 
doc.add(comment("This is a TOML document."))\n>>> doc.add(nl())\n>>> 
doc.add("title", "TOML Example")\n# Using doc["title"] = "TOML Example" is also 
possible\n\n>>> owner = table()\n>>> owner.add("name", "Tom 
Preston-Werner")\n>>> owner.add("organization", "GitHub")\n>>> owner.add("bio", 
"GitHub Cofounder & CEO\\nLikes tater tots and beer.")\n>>> owner.add("dob", 
datetime(1979, 5, 27, 7, 32, tzinfo=utc))\n>>> owner["dob"].comment("First 
class dates? Why not?")\n\n# Adding the table to the document\n>>> 
doc.add("owner", owner)\n\n>>> database = table()\n>>> database["server"] = 
"192.168.1.1"\n>>> database["ports"] = [8001, 8001, 8002]\n>>> 
database["connection_max"] = 5000\n>>> database["enabled"] = True\n\n>>> 
doc["database"] = database\n```\n\n\n## Installation\n\nIf you are using 
[Poetry](https://poetry.eustace.io),\nadd `tomlkit` to your `pyproject.toml` 
file by using:\n\n```bash\npoetry add tomlkit\n```\n\nIf not, you can use 
`pip`:\n\n```bash\npip install tomlkit\n```\n',
+    'long_description': '[github_release]: 
https://img.shields.io/github/release/sdispater/tomlkit.svg?logo=github&logoColor=white\n[pypi_version]:
 
https://img.shields.io/pypi/v/tomlkit.svg?logo=python&logoColor=white\n[python_versions]:
 
https://img.shields.io/pypi/pyversions/tomlkit.svg?logo=python&logoColor=white\n[github_license]:
 
https://img.shields.io/github/license/sdispater/tomlkit.svg?logo=github&logoColor=white\n[travisci]:
 
https://img.shields.io/travis/com/sdispater/tomlkit/master.svg?logo=travis&logoColor=white&label=Travis%20CI\n[appveyor]:
 
https://img.shields.io/appveyor/ci/sdispater/tomlkit/master.svg?logo=appveyor&logoColor=white&label=AppVeyor\n<!--Codecov
 logo not offered by shields.io or simpleicons.org, this is Codecov\'s SVG 
image modified to be white-->\n[codecov]: 
https://img.shields.io/codecov/c/github/sdispater/tomlkit/master.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSI0MDIiIHdpZHRoPSI1ODIiIHk9Ii0xIiB4PSItMSIvPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxwYXRoIGlkPSJzdmdfMSIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmZmZmIiBkPSJtMjUuMDE0LDBjLTEzLjc4NCwwLjAxIC0yNS4wMDQsMTEuMTQ5IC0yNS4wMTQsMjQuODMybDAsMC4wNjJsNC4yNTQsMi40ODJsMC4wNTgsLTAuMDM5YTEyLjIzOCwxMi4yMzggMCAwIDEgOS4wNzgsLTEuOTI4YTExLjg0NCwxMS44NDQgMCAwIDEgN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AuMTI2LDAuMjE3Yy0wLjE4NCwwLjMxOCAtMC4zNDgsMC42MjIgLTAuNDg3LDAuOWwtMC4wMzMsMC4wNjFjLTAuMzU0LDAuNzExIC0wLjY2MSwxLjQ1NSAtMC45MTcsMi4yMTRsLTAuMDM2LDAuMTExYTE3LjEzLDE3LjEzIDAgMCAwIC0wLjg1NSw1LjY0NGwwLjAwMywwLjIzNGEyMy41NjUsMjMuNTY1IDAgMCAwIDAuMDQzLDAuODIyYzAuMDEsMC4xMyAwLjAyMywwLjI1OSAwLjAzNiwwLjM4OGMwLjAxNSwwLjE1OCAwLjAzNCwwLjMxNiAwLjA1MywwLjQ3MWwwLjAxMSwwLjA4OGwwLjAyOCwwLjIxNGMwLjAzNywwLjI2NCAwLjA4LDAuNTI1IDAuMTMsMC43ODdjMC41MDMsMi42MzcgMS43Niw1LjI3NCAzLjYzNSw3LjYyNWwwLjA4NSwwLjEwNmwwLjA4NywtMC4xMDRjMC43NDgsLTAuODg0IDIuNjAzLC0zLjY4NyAyLjc2LC01LjM2OWwwLjAwMywtMC4wMzFsLTAuMDE1LC0wLjAyOGExMS43MzYsMTEuNzM2IDAgMCAxIC0xLjMzMywtNS40MDdjMCwtNi4yODQgNC45NCwtMTEuNTAyIDExLjI0MywtMTEuODhsMC40MTQsLTAuMDE1YzIuNTYxLC0wLjA1OCA1LjA2NCwwLjY3MyA3LjIzLDIuMTM2bDAuMDU4LDAuMDM5bDQuMTk3LC0yLjQ0bDAuMDU1LC0wLjAzM2wwLC0wLjA2MmMwLjAwNiwtNi42MzIgLTIuNTkyLC0xMi44NjUgLTcuMzE0LC0xNy41NTFjLTQuNzE2LC00LjY3OSAtMTAuOTkxLC03LjI1NSAtMTcuNjcyLC03LjI1NSIvPgogPC9nPgo8L3N2Zz4=&label=Codecov\n\n[![GitHub
 
Release][github_release]](https://github.com/sdispater/tomlkit/releases/)\n[![PyPI
 Version][pypi_version]](https://pypi.python.org/pypi/tomlkit/)\n[![Python 
Versions][python_versions]](https://pypi.python.org/pypi/tomlkit/)\n[![License][github_license]](https://github.com/sdispater/tomlkit/blob/master/LICENSE)\n<br>\n[![Travis
 
CI][travisci]](https://travis-ci.com/sdispater/tomlkit)\n[![AppVeyor][appveyor]](https://ci.appveyor.com/project/sdispater/tomlkit)\n[![Codecov][codecov]](https://codecov.io/gh/sdispater/tomlkit)\n\n#
 TOML Kit - Style-preserving TOML library for Python\n\nTOML Kit is a 
**1.0.0rc1-compliant** [TOML](https://github.com/toml-lang/toml) library.\n\nIt 
includes a parser that preserves all comments, indentations, whitespace and 
internal element ordering,\nand makes them accessible and editable via an 
intuitive API.\n\nYou can also create new TOML documents from scratch using the 
provided helpers.\n\nPart of the implementation as been adapted, improved and 
fixed from [Molten](https://github.com/LeopoldArkham/Molten).\n\n## 
Usage\n\n### Parsing\n\nTOML Kit comes with a fast and style-preserving parser 
to help you access\nthe content of TOML files and strings.\n\n```python\n>>> 
from tomlkit import dumps\n>>> from tomlkit import parse  # you can also use 
loads\n\n>>> content = """[table]\n... foo = "bar"  # String\n... """\n>>> doc 
= parse(content)\n\n# doc is a TOMLDocument instance that holds all the 
information\n# about the TOML string.\n# It behaves like a standard 
dictionary.\n\n>>> assert doc["table"]["foo"] == "bar"\n\n# The string 
generated from the document is exactly the same\n# as the original string\n>>> 
assert dumps(doc) == content\n```\n\n### Modifying\n\nTOML Kit provides an 
intuitive API to modify TOML documents.\n\n```python\n>>> from tomlkit import 
dumps\n>>> from tomlkit import parse\n>>> from tomlkit import table\n\n>>> doc 
= parse("""[table]\n... foo = "bar"  # String\n... """)\n\n>>> 
doc["table"]["baz"] = 13\n\n>>> dumps(doc)\n"""[table]\nfoo = "bar"  # 
String\nbaz = 13\n"""\n\n# Add a new table\n>>> tab = table()\n>>> 
tab.add("array", [1, 2, 3])\n\n>>> doc["table2"] = tab\n\n>>> 
dumps(doc)\n"""[table]\nfoo = "bar"  # String\nbaz = 13\n\n[table2]\narray = 
[1, 2, 3]\n"""\n\n# Remove the newly added table\n>>> doc.remove("table2")\n# 
del doc["table2] is also possible\n```\n\n### Writing\n\nYou can also write a 
new TOML document from scratch.\n\nLet\'s say we want to create this following 
document:\n\n```toml\n# This is a TOML document.\n\ntitle = "TOML 
Example"\n\n[owner]\nname = "Tom Preston-Werner"\norganization = "GitHub"\nbio 
= "GitHub Cofounder & CEO\\nLikes tater tots and beer."\ndob = 
1979-05-27T07:32:00Z # First class dates? Why not?\n\n[database]\nserver = 
"192.168.1.1"\nports = [ 8001, 8001, 8002 ]\nconnection_max = 5000\nenabled = 
true\n```\n\nIt can be created with the following code:\n\n```python\n>>> from 
tomlkit import comment\n>>> from tomlkit import document\n>>> from tomlkit 
import nl\n>>> from tomlkit import table\n\n>>> doc = document()\n>>> 
doc.add(comment("This is a TOML document."))\n>>> doc.add(nl())\n>>> 
doc.add("title", "TOML Example")\n# Using doc["title"] = "TOML Example" is also 
possible\n\n>>> owner = table()\n>>> owner.add("name", "Tom 
Preston-Werner")\n>>> owner.add("organization", "GitHub")\n>>> owner.add("bio", 
"GitHub Cofounder & CEO\\nLikes tater tots and beer.")\n>>> owner.add("dob", 
datetime(1979, 5, 27, 7, 32, tzinfo=utc))\n>>> owner["dob"].comment("First 
class dates? Why not?")\n\n# Adding the table to the document\n>>> 
doc.add("owner", owner)\n\n>>> database = table()\n>>> database["server"] = 
"192.168.1.1"\n>>> database["ports"] = [8001, 8001, 8002]\n>>> 
database["connection_max"] = 5000\n>>> database["enabled"] = True\n\n>>> 
doc["database"] = database\n```\n\n\n## Installation\n\nIf you are using 
[Poetry](https://poetry.eustace.io),\nadd `tomlkit` to your `pyproject.toml` 
file by using:\n\n```bash\npoetry add tomlkit\n```\n\nIf not, you can use 
`pip`:\n\n```bash\npip install tomlkit\n```\n',
     'author': 'Sébastien Eustace',
     'author_email': '[email protected]',
     'maintainer': None,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tests/conftest.py 
new/tomlkit-0.6.0/tests/conftest.py
--- old/tomlkit-0.5.11/tests/conftest.py        2018-11-09 17:33:48.107540100 
+0100
+++ new/tomlkit-0.6.0/tests/conftest.py 2020-04-15 10:43:59.794576600 +0200
@@ -42,6 +42,13 @@
 
 
 TEST_DIR = os.path.join(os.path.dirname(__file__), "toml-test", "tests")
+IGNORED_TESTS = {
+    "invalid": [
+        "array-mixed-types-strings-and-ints.toml",
+        "array-mixed-types-arrays-and-ints.toml",
+        "array-mixed-types-ints-and-floats.toml",
+    ]
+}
 
 
 def get_tomltest_cases():
@@ -52,8 +59,12 @@
     rv = {}
     for d in dirs:
         rv[d] = {}
+        ignored = IGNORED_TESTS.get(d, [])
         files = os.listdir(os.path.join(TEST_DIR, d))
         for f in files:
+            if f in ignored:
+                continue
+
             bn, ext = f.rsplit(".", 1)
             if bn not in rv[d]:
                 rv[d][bn] = {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tomlkit-0.5.11/tests/examples/invalid/mixed_array_types.toml 
new/tomlkit-0.6.0/tests/examples/invalid/mixed_array_types.toml
--- old/tomlkit-0.5.11/tests/examples/invalid/mixed_array_types.toml    
2018-07-06 19:56:02.546034000 +0200
+++ new/tomlkit-0.6.0/tests/examples/invalid/mixed_array_types.toml     
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-array = [1, "2", 3]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tests/test_api.py 
new/tomlkit-0.6.0/tests/test_api.py
--- old/tomlkit-0.5.11/tests/test_api.py        2020-02-29 13:19:19.665425300 
+0100
+++ new/tomlkit-0.6.0/tests/test_api.py 2020-04-15 10:43:59.795713400 +0200
@@ -77,7 +77,6 @@
         ("section_with_trailing_characters", UnexpectedCharError),
         ("key_value_with_trailing_chars", UnexpectedCharError),
         ("array_with_invalid_chars", UnexpectedCharError),
-        ("mixed_array_types", MixedArrayTypesError),
         ("invalid_number", InvalidNumberError),
         ("invalid_date", InvalidDateError),
         ("invalid_time", InvalidTimeError),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/nested-inline-table-array.json 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/nested-inline-table-array.json
--- 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/nested-inline-table-array.json   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/nested-inline-table-array.json    
    2020-01-09 13:28:44.855810600 +0100
@@ -0,0 +1,7 @@
+{
+    "a": [
+        {
+            "b": {}
+        }
+    ]
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/nested-inline-table-array.toml 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/nested-inline-table-array.toml
--- 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/nested-inline-table-array.toml   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/nested-inline-table-array.toml    
    2020-01-09 13:28:44.856207000 +0100
@@ -0,0 +1 @@
+a = [ { b = {} } ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/right-curly-brace-after-boolean.json
 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/right-curly-brace-after-boolean.json
--- 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/right-curly-brace-after-boolean.json
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/right-curly-brace-after-boolean.json
  2020-01-09 13:28:44.856418600 +0100
@@ -0,0 +1,16 @@
+{
+    "black":{
+       "allow_prereleases":{
+          "type":"bool",
+          "value":"true"
+       },
+       "python":{
+          "type":"string",
+          "value":">3.6"
+       },
+       "version":{
+          "type":"string",
+          "value":">=18.9b0"
+       }
+    }
+ }
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/right-curly-brace-after-boolean.toml
 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/right-curly-brace-after-boolean.toml
--- 
old/tomlkit-0.5.11/tests/toml-test/tests/valid/right-curly-brace-after-boolean.toml
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/tomlkit-0.6.0/tests/toml-test/tests/valid/right-curly-brace-after-boolean.toml
  2020-01-09 13:28:44.856581000 +0100
@@ -0,0 +1 @@
+black = { python=">3.6", version=">=18.9b0", allow_prereleases=true }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/__init__.py 
new/tomlkit-0.6.0/tomlkit/__init__.py
--- old/tomlkit-0.5.11/tomlkit/__init__.py      2020-02-29 18:21:26.121214600 
+0100
+++ new/tomlkit-0.6.0/tomlkit/__init__.py       2020-04-15 13:27:59.730194600 
+0200
@@ -22,4 +22,4 @@
 from .api import ws
 
 
-__version__ = "0.5.11"
+__version__ = "0.6.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/_utils.py 
new/tomlkit-0.6.0/tomlkit/_utils.py
--- old/tomlkit-0.5.11/tomlkit/_utils.py        2019-06-29 17:32:03.951543800 
+0200
+++ new/tomlkit-0.6.0/tomlkit/_utils.py 2020-04-15 13:27:59.685228800 +0200
@@ -4,6 +4,7 @@
 from datetime import datetime
 from datetime import time
 from datetime import timedelta
+from typing import Union
 
 
 from ._compat import decode
@@ -52,8 +53,6 @@
         if m.group(7):
             microsecond = int(("{:<06s}".format(m.group(8)))[:6])
 
-        dt = datetime(year, month, day, hour, minute, second, microsecond)
-
         if m.group(9):
             # Timezone
             tz = m.group(9)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/container.py 
new/tomlkit-0.6.0/tomlkit/container.py
--- old/tomlkit-0.5.11/tomlkit/container.py     2020-02-29 18:09:22.692561600 
+0100
+++ new/tomlkit-0.6.0/tomlkit/container.py      2020-04-15 13:27:59.685626000 
+0200
@@ -335,7 +335,7 @@
         if self._body:
             return self._body[-1][1]
 
-    def as_string(self, prefix=None):  # type: () -> str
+    def as_string(self):  # type: () -> str
         s = ""
         for k, v in self._body:
             if k is not None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/items.py 
new/tomlkit-0.6.0/tomlkit/items.py
--- old/tomlkit-0.5.11/tomlkit/items.py 2020-01-10 13:52:51.193374600 +0100
+++ new/tomlkit-0.6.0/tomlkit/items.py  2020-04-15 13:27:59.686598800 +0200
@@ -201,7 +201,9 @@
     A key value.
     """
 
-    def __init__(self, k, t=None, sep=None, dotted=False):  # type: (str) -> 
None
+    def __init__(
+        self, k, t=None, sep=None, dotted=False
+    ):  # type: (str, Optional[KeyType], Optional[str], bool) -> None
         if t is None:
             if any(
                 [c not in string.ascii_letters + string.digits + "-" + "_" for 
c in k]
@@ -545,7 +547,7 @@
         trivia,
         raw,
         **kwargs
-    ):  # type: (int, int, int, int, int, int, int, ..., Trivia, ...) -> 
datetime
+    ):  # type: (int, int, int, int, int, int, int, Optional[datetime.tzinfo], 
Trivia, str, Any) -> datetime
         return datetime.__new__(
             cls,
             year,
@@ -561,7 +563,7 @@
 
     def __init__(
         self, year, month, day, hour, minute, second, microsecond, tzinfo, 
trivia, raw
-    ):  # type: (int, int, int, int, int, int, int, ..., Trivia) -> None
+    ):  # type: (int, int, int, int, int, int, int, Optional[datetime.tzinfo], 
Trivia, str) -> None
         super(DateTime, self).__init__(trivia)
 
         self._raw = raw
@@ -650,7 +652,7 @@
     A date literal.
     """
 
-    def __new__(cls, year, month, day, *_):  # type: (int, int, int, ...) -> 
date
+    def __new__(cls, year, month, day, *_):  # type: (int, int, int, Any) -> 
date
         return date.__new__(cls, year, month, day)
 
     def __init__(
@@ -706,12 +708,12 @@
 
     def __new__(
         cls, hour, minute, second, microsecond, tzinfo, *_
-    ):  # type: (int, int, int, int, ...) -> time
+    ):  # type: (int, int, int, int, Optional[datetime.tzinfo], Any) -> time
         return time.__new__(cls, hour, minute, second, microsecond, tzinfo)
 
     def __init__(
         self, hour, minute, second, microsecond, tzinfo, trivia, raw
-    ):  # type: (int, int, int, int, Trivia, str) -> None
+    ):  # type: (int, int, int, int, Optional[datetime.tzinfo], Trivia, str) 
-> None
         super(Time, self).__init__(trivia)
 
         self._raw = raw
@@ -744,7 +746,9 @@
     An array literal
     """
 
-    def __init__(self, value, trivia, multiline=False):  # type: (list, 
Trivia) -> None
+    def __init__(
+        self, value, trivia, multiline=False
+    ):  # type: (list, Trivia, bool) -> None
         super(Array, self).__init__(trivia)
 
         list.__init__(
@@ -762,18 +766,6 @@
     def value(self):  # type: () -> list
         return self
 
-    def is_homogeneous(self):  # type: () -> bool
-        if not self:
-            return True
-
-        discriminants = [
-            i.discriminant
-            for i in self._value
-            if not isinstance(i, (Whitespace, Comment))
-        ]
-
-        return len(set(discriminants)) == 1
-
     def multiline(self, multiline):  # type: (bool) -> self
         self._multiline = multiline
 
@@ -792,7 +784,7 @@
 
         return s
 
-    def append(self, _item):  # type: () -> None
+    def append(self, _item):  # type: (Any) -> None
         if self._value:
             self._value.append(Whitespace(", "))
 
@@ -801,9 +793,6 @@
 
         self._value.append(it)
 
-        if not self.is_homogeneous():
-            raise ValueError("Array has mixed types elements")
-
     if not PY2:
 
         def clear(self):
@@ -869,7 +858,7 @@
         is_super_table=False,
         name=None,
         display_name=None,
-    ):  # type: (tomlkit.container.Container, Trivia, bool, ...) -> None
+    ):  # type: (tomlkit.container.Container, Trivia, bool, bool, 
Optional[str], Optional[str]) -> None
         super(Table, self).__init__(trivia)
 
         self.name = name
@@ -962,8 +951,8 @@
     def is_super_table(self):  # type: () -> bool
         return self._is_super_table
 
-    def as_string(self, prefix=None):  # type: () -> str
-        return self._value.as_string(prefix=prefix)
+    def as_string(self):  # type: () -> str
+        return self._value.as_string()
 
     # Helpers
 
@@ -1250,7 +1239,7 @@
 
     def __init__(
         self, body, name=None, parsed=False
-    ):  # type: (List[Table], Optional[str]) -> None
+    ):  # type: (List[Table], Optional[str], bool) -> None
         self.name = name
         self._body = []
         self._parsed = parsed
@@ -1295,7 +1284,7 @@
     def as_string(self):  # type: () -> str
         b = ""
         for table in self._body:
-            b += table.as_string(prefix=self.name)
+            b += table.as_string()
 
         return b
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/parser.py 
new/tomlkit-0.6.0/tomlkit/parser.py
--- old/tomlkit-0.5.11/tomlkit/parser.py        2020-02-29 13:19:19.669257900 
+0100
+++ new/tomlkit-0.6.0/tomlkit/parser.py 2020-04-15 10:43:59.797905700 +0200
@@ -674,10 +674,7 @@
         except ValueError:
             pass
         else:
-            if res.is_homogeneous():
-                return res
-
-        raise self.parse_error(MixedArrayTypesError)
+            return res
 
     def _parse_inline_table(self):  # type: () -> InlineTable
         # consume opening bracket, EOF here is an issue (middle of array)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.5.11/tomlkit/source.py 
new/tomlkit-0.6.0/tomlkit/source.py
--- old/tomlkit-0.5.11/tomlkit/source.py        2018-11-19 18:39:17.283517100 
+0100
+++ new/tomlkit-0.6.0/tomlkit/source.py 2020-04-15 13:27:59.687095900 +0200
@@ -4,8 +4,10 @@
 import itertools
 
 from copy import copy
+from typing import Any
 from typing import Optional
 from typing import Tuple
+from typing import Type
 
 from ._compat import PY2
 from ._compat import unicode
@@ -116,7 +118,7 @@
         """
         return self[self._marker : self._idx]
 
-    def inc(self, exception=None):  # type: (Optional[ParseError.__class__]) 
-> bool
+    def inc(self, exception=None):  # type: (Optional[Type[ParseError]]) -> 
bool
         """
         Increments the parser if the end of the input has not been reached.
         Returns whether or not it was able to advance.
@@ -172,7 +174,7 @@
 
     def parse_error(
         self, exception=ParseError, *args
-    ):  # type: (ParseError.__class__, ...) -> ParseError
+    ):  # type: (Type[ParseError], Any) -> ParseError
         """
         Creates a generic "parse error" at the current position.
         """


Reply via email to