typechecker
Here are 61 public repositories matching this topic...
Some users don't understand why mypy complains about incompatible overrides. We could add an extra note in cases where the argument type is narrower in an override or the return type is wider (or all incompatible overrides). The note could mention Liskov substitution principle and add a link to mypy documentation (add a new section to https://mypy.readthedocs.io/en/latest/common_issues.html perhap
Issue Scope
- provide an example in the guided tour on following imports in a virtualenv
- clarify CLI argument documentation to show how to pass multiple directories to
--search-path
The Story
I wanted to write an example of checking pip-installed imports using pyre. After reading through the documentation, I found that vanilla `source activate my-venv; pyre --source-directory
Example annotation:
from typing import overload
@overload
def f(x: str) -> str: ...
@overload
def f(x: int) -> int: ...and source file
def f(x):
if isinstance(x, (str, int)):
return x
else:
raise TypeError(f"x should be str or int, got {type(x)}")Call
merge-pyi foo.py foo.pyiActual output
Statically typechecks a common SQL dialect and translates it to various RDBMS backends
-
Updated
Dec 3, 2019 - F#
PEP484 allows TypeVar to be used anywhere, not necessarily in Generic classes, see this section.
However as of today the following fails:
from enforce import runtime_validation
from typing import TypeVar, Type
T = TypeVar('T', bound=int)
@runtime_validation
class Foo:
def foo(self, arg: Type[T]) -> T:
It'd be neat to have a top-level tests directory, with a bunch of Pikelet test files in there, and a custom test harness to check them.
There is controversy about how improper list should be treated (see josefs/Gradualizer#110). Explain the stance Hammox takes on this issue.
Compositional type checking for Haskell
-
Updated
Nov 17, 2019 - Haskell
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
-
Updated
Dec 9, 2019 - TypeScript
Dependently typed core calculus with erasure
-
Updated
Nov 17, 2019 - Idris
Dependently-typed language w/ little to say for itself
-
Updated
Dec 5, 2019 - Haskell
An implementation of structural subtyping of records and functions
-
Updated
Aug 26, 2019 - Haskell
Learning compilers, interpreters, code generation, virtual machines, assemblers, JITs, etc.
-
Updated
Aug 17, 2019 - Haskell
Compositional type checking for a Hindley-Milner type system
-
Updated
Jul 8, 2019 - Haskell
JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
-
Updated
Dec 3, 2019 - JavaScript
An example LLVM-based compiler for a subset of C.
-
Updated
Sep 19, 2019 - C++
👺 weak but accurate type checking that returns a string representation of input's type
-
Updated
Aug 24, 2018 - JavaScript
My playground for building a compiler for an ML-like in Rust
-
Updated
Oct 3, 2019 - Rust
Decorator style assertions and type check library for Contract programming
-
Updated
Sep 10, 2019 - Ruby
Improve this page
Add a description, image, and links to the typechecker topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the typechecker topic, visit your repo's landing page and select "manage topics."
@Toxyxer recently fixed #34870. As mentioned:
A great follow-up would be to make this work for
}braces in