Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature for MemoryView #2215

Open
KitaitiMakoto opened this issue Dec 30, 2024 · 0 comments
Open

Signature for MemoryView #2215

KitaitiMakoto opened this issue Dec 30, 2024 · 0 comments

Comments

@KitaitiMakoto
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant