Skip to content
#

mypy-stubs

Here are 18 public repositories matching this topic...

EricSchles
EricSchles commented Sep 3, 2021

Hi all,

Big fan of functional programming. I'm glad to see ya'll trying to bring this to Python. My question / request is pretty basic, I hope. I was looking over the docs and I saw:

result: Result[int, Any] = Success(1).map(double)

When looking at this I was confused for a couple of reasons, since the syntax is new to me. But the biggest stumbling block was the:

result:

I c

thepabloaguilar
thepabloaguilar commented Jul 11, 2020

When we define a class like this:

def func():
    ...

class MyClass:
    my_func = lambda self, arg: arg

# or
class MyAnotherClass:
    my_func = func

The coverage plugin will consider the my_func as coveraged without any tests.
This behavior is expected because for it the my_func is an attribute!

I think it will be great use the normal signature, this will en

Improve this page

Add a description, image, and links to the mypy-stubs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mypy-stubs topic, visit your repo's landing page and select "manage topics."

Learn more