Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode debug - AttributeError("'Container' object has no attribute 'is_boolean'") #391

Open
bartdorlandt opened this issue Dec 31, 2024 · 0 comments

Comments

@bartdorlandt
Copy link

bartdorlandt commented Dec 31, 2024

During a debug session when creating a array() and trying to add inline_tables to it, it works fine, though vscode in debug mode thinks differently.

import tomlkit as tk

new_authors = tk.array()
tb = tk.inline_table().add("name","another").add("email", "[email protected]")
new_authors.add_line(tb)

The issue doesn't appear in the python interpreter.

It is only seen in the debug mode of vscode.

image

image

Python version: v3.12.6
install by uv, cpython-3.12.6-macos-aarch64-none/bin/python3.12
vscode version: Version: 1.96.2 (Universal)
tomlkit version: 0.13.2

@bartdorlandt bartdorlandt changed the title AttributeError("'Container' object has no attribute 'is_boolean'") vscode debug - AttributeError("'Container' object has no attribute 'is_boolean'") Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant