Skip to content
#

mypy

Here are 236 public repositories matching this topic...

starlite
Goldziher
Goldziher commented Jun 30, 2022

Sonar complains about several functions having too high "cognitive complexity", see --> https://sonarcloud.io/project/issues?resolved=false&severities=CRITICAL&id=starlite-api_starlite. It would be nice to refactor these to be both clearer and simpler - probably by splitting them into functions, or refactoring them into classes, using functional composition etc.

This is a good issue for those

help wanted good first issue refactor
ianozsvald
ianozsvald commented Aug 20, 2021

Is there a how-to guide to write my own tool? I want to do some conditional stripping/modifying (e.g. insert a Python script into a cell) for a Kaggle notebook. I've been playing around for an hour and I've sort-of-got a tool working, but I can't get nbqa to pass in anything I can read. In my code sys.argv has the original Notebook filename and if I rewrite that, nbqa throws an exception.k

documentation good first issue
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

enhancement good first issue hacktoberfest

Improve this page

Add a description, image, and links to the mypy 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 topic, visit your repo's landing page and select "manage topics."

Learn more