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

function with argument of typeItem should be compatible with Table #135

Open
aahung opened this issue Jun 7, 2021 · 0 comments
Open

function with argument of typeItem should be compatible with Table #135

aahung opened this issue Jun 7, 2021 · 0 comments

Comments

@aahung
Copy link

aahung commented Jun 7, 2021

Error:

Argument 2 to "add" of "Container" has incompatible type "Table"; expected "Optional[Item]"

However, in the source code of Item, it indicates it can be a Table.

https://github.com/sdispater/tomlkit/blob/627fb1ae496a2531ec738e00c1abf6339472c1a4/tomlkit/items.py#L303-L304

It should allow me to pass a Table to .add().

Version 0.7.2
Python 3.7.2
mypy: 0.790

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