Adding type hints for other End files delegating.py, grouping.py, ipexing.py, notifying.py, exchanging.py#355
Conversation
…uping.py, ipexing.py, notifying.py, exchanging.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #355 +/- ##
=======================================
Coverage 97.53% 97.53%
=======================================
Files 1 1
Lines 324 325 +1
Branches 24 24
=======================================
+ Hits 316 317 +1
Misses 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@iFergal feel free to approve and merge. |
|
@kentbull Going to see if there's a nice way to serialise the exn resources from @Sotatek-Patrick-Vu Maybe we should mark as draft for a little while |
lenkan
left a comment
There was a problem hiding this comment.
Looks good to me.
It introduces a bit too much type casting and type checking in the tests for my taste. But I get how that happened with all the re-assigning of variables, which is a separate problem.
| /** @default null */ | ||
| groupName: string | null; | ||
| /** @default null */ | ||
| memberName: string | null; | ||
| /** @default null */ | ||
| sender: string | null; |
There was a problem hiding this comment.
Can these be omitted? Or they have to be explicitly set to null? Was thinking they are groupName?: string | null otherwise.
I haven't checked how they are used yet.
There was a problem hiding this comment.
KERIA adds them to some exns in groups().getRequest. I think we could change it to be groupName?: string; over groupName: string | null though
There was a problem hiding this comment.
I fixed this then we also need to change relevant dataclass in keria
There was a problem hiding this comment.
I created relevant PR in Keria here WebOfTrust/keria#417
|
@lenkan The type casting is because of Feel free to take a look ahead of time. I'd like for both of them to go in together, as I also don't like the type casting. |
|
@lenkan @kentbull Ready for re-review. Notes:
|
kentbull
left a comment
There was a problem hiding this comment.
Almost there. Just one more field change and you're done.
|
Merging as this has been open for quite some time and is safe enough to merge. If there are more comments on the approach, an issue can be opened. |
No description provided.