Architecture: Figure out how to get context
See original GitHub issueSeveral issues are blocked, because I don’t know yet how to get context.
For example, SIM 201 prevents not a==b and suggests a != b. In general, this seems to be a good rule.
As an exception, I want to leave it like this when it’s in the context of throwing exceptions:
if not (a == b):
return ValueError("Expected a==b")
But for this I need to know that the boolean operation not (a ==b) is in the context of an if-statement.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
What is an Architectural Context Diagram? - Orbus Software
It is simply a visual that shows the complete context of a proposed architectural change. It must make that context sensible to a...
Read more >How to get Context in Android MVVM ViewModel
If you need to load images, pass the View instance through arguments from the Databinding methods and use that View context. The MVVM...
Read more >The Concept of Context in Architecture | by Sotiris Frankos
An architect's choice to integrate a work in its context or make it stand out from it is conscious. Architect and academic Jean...
Read more >4.10 Architecture design using context diagrams - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Context architecture examples - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://stackoverflow.com/a/43311383/562769 might be it
Ah, nvm you are using dynamic attrs. Yeah, that will only work if you mark parent as an optional value and subclass them all. 😕