PietroPasotti
PietroPasotti
So, after some digging, it looks like there are a bunch of differences in the Mapping `dir()` between 3.5.2 and greater versions. Notably, all 'classic' dict public methods `get`, `items`,...
> I'd vote for conditionally providing our own `.get` implementation for python
> 3.5.2 Somehow that release wasn't so minor: they added the typing module! https://www.python.org/downloads/release/python-353/
I'm not sure that's always the case. If I have, say, a charm that cannot be scaled up, I could write: ```python def __init__(...): if not self.unit.is_leader(): self.status = Blocked('cannot...
 apparently it has been in the air for quite a while
@sed-i And again you read my mind: https://discourse.charmhub.io/t/a-relation-data-wrapper-for-unit-and-integration-testing/7051 Also a related prototype that ended up being abandoned (but I secretly keep having high hopes for): https://github.com/PietroPasotti/relation-wrapper
@sed-i not yet I'm afraid, the coming weeks while I wait for some juju bugs to be fixed and the implementation on their side to settle, I'll get working on...
> Pre-review comment: it'd be great to fix the formatting and tests before going too much further. Will do it first thing tomorrow. > I'm also getting errors when running...
> @sed-i I started working on some docs: https://discourse.charmhub.io/t/secret-events/7191
I was about to close for the day when I realized that I'd forgotten to add a bunch of optional 'label' args to all sorts of Secret.remove/revoke etc methods, to...