basic formatting for ExprDict (#5167)

This commit is contained in:
David Szotten 2023-06-20 10:25:08 +01:00 committed by GitHub
parent dfb04e679e
commit 773e79b481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 556 additions and 170 deletions

View file

@ -0,0 +1,50 @@
# before
{ # open
key# key
: # colon
value# value
} # close
# after
{**d}
{**a, # leading
** # middle
b # trailing
}
{
** # middle with single item
b
}
{
# before
** # between
b,
}
{
**a # comment before preceeding node's comma
,
# before
** # between
b,
}
{}
{1:2,}
{1:2,
3:4,}
{asdfsadfalsdkjfhalsdkjfhalskdjfhlaksjdfhlaskjdfhlaskjdfhlaksdjfh: 1, adsfadsflasdflasdfasdfasdasdf: 2}
mapping = {
A: 0.25 * (10.0 / 12),
B: 0.1 * (10.0 / 12),
C: 0.1 * (10.0 / 12),
D: 0.1 * (10.0 / 12),
}