Open JSAbrahams opened 4 years ago
We don't check whether a resource implements __enter__ and __exit__.
__enter__
__exit__
Check that resource type implements __enter__ and __exit__ when using it as a resource.
Add two extra constraints for these magic functions.
Current Issue
We don't check whether a resource implements
__enter__
and__exit__
.High-level description of the feature
Check that resource type implements
__enter__
and__exit__
when using it as a resource.Description of potential implementation
Add two extra constraints for these magic functions.