diff --git a/pipenv/project.py b/pipenv/project.py index 4cb2ff9c..ee2219ef 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -790,7 +790,7 @@ class Project(object): except Exception: document = tomlkit.document() for section in ("packages", "dev-packages"): - document[section] = tomlkit.container.Table() + document[section] = tomlkit.table() # Convert things to inline tables — fancy :) for package in data.get(section, {}): if hasattr(data[section][package], "keys"):