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

v0.13.0 #72

Merged
merged 17 commits into from Feb 22, 2021
Merged

v0.13.0 #72

merged 17 commits into from Feb 22, 2021

Conversation

stolarczyk
Copy link
Member

@stolarczyk stolarczyk commented Aug 21, 2020

fix databio/yacman#40

to do:

  • update tests
  • changelog

attmap/_att_map_like.py Outdated Show resolved Hide resolved
def _custom_repr(obj, prefix=""):
"""
Calls the ordinary repr on every object but list, which is
converted to a block style string instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's a block style string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by block style string I mean:

"""
- item
- item1
- item2
"""

as opposed to flow style:

"[item, item1, item2]"

That's what this PR is all about :)

feel free to change/suggest other nomenclature

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah no I didn't mean to suggest it should change, I just really hadn't heard it, but it totally makes sense now seeing it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to do anything differently if there are a ton of items in the list?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean using flow or block style depending on the number of items in the list? I'd personally prefer to stick to one or the other.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessarily. I was just worried at this getting huge for a large object, that's all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it would only display the first 10 components, for example

@@ -66,15 +65,29 @@ def __repr__(self):
self._data_for_repr(), self._new_empty_basic_map))

def _render(self, data, exclude_class_list=[]):
def _custom_repr(obj, prefix=""):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, bet this will look much better

@@ -3,6 +3,7 @@ python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

attmap/_att_map_like.py Outdated Show resolved Hide resolved
@@ -54,7 +54,7 @@ def read_reqs(reqs_name):
],
keywords="dict, map, mapping, dot, item, getitem, attr, getattr, key-value, dynamic, mutable, access",
url="https://github.com/pepkit/{}/".format(PACKAGE),
author=u"Nathan Sheffield, Vince Reuter",
author=u"Nathan Sheffield, Vince Reuter, Michal Stolarczyk",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vreuter
Copy link
Member

vreuter commented Aug 21, 2020

I left a couple small suggestions but looks good!

@vreuter vreuter self-requested a review August 21, 2020 23:38
@vreuter vreuter mentioned this pull request Feb 7, 2021
@@ -1,6 +1,6 @@
hypothesis
hypothesis==4.38.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to pin this to a specific version?

@nsheff
Copy link
Contributor

nsheff commented Feb 16, 2021

excited to have the released version of attmap passing CI again!

@stolarczyk stolarczyk mentioned this pull request Feb 18, 2021
3 tasks
@stolarczyk stolarczyk merged commit c2360d1 into master Feb 22, 2021
@stolarczyk stolarczyk deleted the dev branch February 22, 2021 22:14
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

Successfully merging this pull request may close these issues.

yacman list representation
3 participants