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

Feature proposal: rbs todo command #1449

Closed
ksss opened this issue Aug 21, 2023 · 0 comments
Closed

Feature proposal: rbs todo command #1449

ksss opened this issue Aug 21, 2023 · 0 comments

Comments

@ksss
Copy link
Collaborator

ksss commented Aug 21, 2023

Problem

Finding missing RBS definitions

Identifying which RBS definitions are missing is a difficult and painstaking task.
The person writing the RBS does not know what the missing RBS is.

Make sure the RBS is practical.

The RBS writer is not confident in the RBS described.
The only way is to start the type checker (steep) and try to write the source code.

Feature proposal: rbs todo command

rbs todo command display a list of unimplemented methods.

When check for unimplemented methods in the IO class.

$ rbs todo IO
- def pread
- def pwrite
- def to_path
...

Yet another way: rbs prototype runtime --todo

--todo option acts like a filter to display only methods that are not yet implemented in defined RBS.

$ rbs prototype runtime --todo IO
class IO
  def pread: (*untyped) -> untyped
  def pwrite: (untyped, untyped) -> untyped
  def to_path: () -> untyped
end
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