DetachHead

Results 673 issues of DetachHead

It can be frustrating when you have a git configuration to use different line endings to you system default, and mypy write baseline with system line endings instead of git...

feature
basedline
p-2

```py def foo() -> None: return # no error def bar(cond: bool) -> int | None: if cond: return 1 return # error: Return value expected [return-value] def baz(cond: bool)...

feature
p-3

```py reveal_type([0][0]) # currently int, could be 0 ``` _Originally posted by @KotlinIsland in https://github.com/KotlinIsland/basedmypy/pull/340#discussion_r912623393_

topic-inference

Mypy is already way too slow, we need tests to make sure we don't make it any slower

project
feature

```py class Foo: def __new__(cls, value: int): ... def __init__(self, value): # inferred as int ... ```

feature
p-3
topic-inference

```py class A(Any): ... reveal_type(A()) # A ``` This could reveal something like `A(Any)` or `Any(A)` or `Any[A]` ```py class A: def __getattr__(...) -> Any: ... a: A reveal_type(a.foo) #...

feature

The flag will default to false and will be mandatory for all targets. Eg: thirdparty.pyi ```py def foo(a: list[Any]) -> Any: ... ``` my.py ```py from thirdparty import foo reveal_type(foo)...

p-1
feature
feedback
topic-any

```py # third_party.py def foo() -> Any: ... ``` ```py # my.py some_list: list[int] = third_party.foo() # that's okay? ```

feature
p-2
topic-any

the current behavior leads to confusion and annoying behavior from pip, especially when trying to switch between normal mypy and basedmypy ``` > pip install mypy==0.910 Requirement already satisfied: mypy==0.910...

project
not-based
p-2

![image](https://user-images.githubusercontent.com/57028336/137098428-0232140a-8f9b-4799-be51-5f0ce5ad47d5.png) ![image](https://user-images.githubusercontent.com/57028336/137098702-d6b39b0d-31dc-4375-ad0b-c7e2de34b0fa.png)