Signature for MemoryView
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 2.2k
- Forks
- 256
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 37
Description
Hello,
When a method accepts arguments that expose MemoryView, we cannot represent that in current RBS (v3.8.1) and type check by Steep fails. We need a way to represent an object which exposes MemoryView.
As just an idea, a special phantom module RBS::Marker::MemoryView might play a role in this case:
class AMemoryViewProducer
include RBS::Marker::MemoryView
end
class AMemoryViewConsumer
def consume_memory_view: (RBS::Marker::MemoryView) -> void
end
I think we need more discussion. How do you think?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how RBS v3.8.1 represents objects that expose MemoryView and how Steep consumes those signatures. The issue proposes RBS::Marker::MemoryView but leaves the design open; done requires an agreed representation, documented behavior, and corresponding validation before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100