Comments (2)
Should boolish
be untyped
instead?
def my_method: (boolish) -> boolish
# in = contravariant ^ ^ out = covariant
from steep.
I feel changing boolish
as an alias for untyped
is not a good idea. Because the main usage of the boolish
type is a condition clause. No methods except !
should not be allowed. Therefore it's better to keep it as an alias for top
to me.
I agree that top
and boolish
are not the same. So it would be better to add another top-like type for boolish
. But we need to work hard to do that...
from steep.
Related Issues (20)
- Comments for `#@type` annotations
- Type variable application rejects `self` and crash+deadlocks for `instance` HOT 2
- Steep crashes when a void or top is passed to an interface argument HOT 1
- Steep cannot detect the type of the `rescue =>` variable after they leak scope in Ruby HOT 1
- Support splatting non-`_ToA`s
- Support Or-Assigning (`||=`) a constant
- Improve text synchronization
- Better method call error reporting
- `ArgumentTypeMismatch` when splatting an array into args
- do block inside class with in Data.define not correctly identified
- Use “Cannot find the declaration of method” for methods defined in Ruby but not in RBS
- Passing splat arg to `untyped` call reports `Ruby::UnsupportedSyntax`
- Typechecking DSL files: top-level context and block context HOT 2
- Output format selection and improved automation formats HOT 2
- `steep check` target selection HOT 1
- Check for missing method declaration HOT 1
- About external libraries without type definitions HOT 2
- Overloaded `Proc#initialize` implodes Steep HOT 2
- Does the rbs collection be included in the steep check is default behavior? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steep.