-
Updated
Dec 14, 2021 - Python
dataclasses
Here are 105 public repositories matching this topic...
Hello,
I'm having problems creating a database, mostly due to lack of any examples.
I can create a page just fine, but am having problems with databases.
I think I just get type/format of the title and properties wrong.
Would be great to have an example of how to create a database with a title and a text property.
Thanks for your great work!
-
Updated
Jan 2, 2022 - Python
It is common to have Union traits of the form Union(None, <something>). As a convenience to developers, and following a similar convention in Python's typing module, we should consider having Optional(<something>) as an alternative way of writing Union(None, <something>).
An alternative would be to make allow_none metadata universally accepted across TraitType instances.
-
Updated
Dec 16, 2021 - Python
Just fix tests to use Factory instead of old style
-
Updated
Dec 14, 2021 - Python
-
Updated
Nov 22, 2021 - Python
Describe the bug
When help text is added to a field that does not have a default value, the help text indicates a default value of None when it should not.
To Reproduce
#!/usr/bin/env python3
# test_simple.py
from dataclasses import dataclass
from simple_parsing import ArgumentParser
@dataclass
class Options:
list_items: list[str] # SOMETHING
parser = Argume-
Updated
Dec 28, 2021 - Python
It seems that the typing module doesn't flatten nested literal type definitions, so the following does not currently work:
SuccessStatus = Literal[200, 201, 204]
ClientError = Literal[404, 401, 403, 409, 400]
ServerError = Literal[500, 504, 503]
@dataclass
class HttpResponse(JsonSchemaMixin):
status: Literal[SuccessStatus, ClientError, ServerError]
...Fix the type hints
Mypy fails on desert currently.
-
Updated
Dec 20, 2021 - Python
-
Updated
Dec 8, 2021 - Python
-
Updated
Jan 1, 2022 - Python
-
Updated
Nov 18, 2021 - Python
-
Updated
Nov 6, 2021 - Python
-
Updated
Oct 18, 2021 - Python
-
Updated
Nov 17, 2021 - Python
-
Updated
Dec 24, 2021 - Python
-
Updated
Nov 23, 2021 - Python
-
Updated
Nov 7, 2021 - Python
-
Updated
Nov 18, 2018 - Python
-
Updated
Nov 15, 2021 - Python
Improve this page
Add a description, image, and links to the dataclasses topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the dataclasses topic, visit your repo's landing page and select "manage topics."
test_global_config.pyhas a usage example