mypy
Here are 236 public repositories matching this topic...
Bug report
What's wrong
I'm trying to match some exceptions using structural pattern matching after reading the documentation, which says that I can match by result stored inside Failure (here):
from returns.result import Failure, Success, safe
@safe
def div(first_number: int, second_numbe-
Updated
Jul 3, 2022 - Python
-
Updated
Mar 13, 2022
-
Updated
Jul 6, 2022 - Python
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
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
-
Updated
Feb 14, 2022 - Python
https://github.com/readthedocs/recommonmark#recommonmark
We should switch to myst: https://github.com/executablebooks/MyST-Parser
-
Updated
Jun 26, 2022 - Python
-
Updated
Jun 17, 2022 - Python
-
Updated
Jun 27, 2022 - Python
-
Updated
Jul 5, 2022 - Python
-
Updated
Jun 28, 2022 - Python
-
Updated
Jul 4, 2022 - Python
-
Updated
Feb 16, 2021 - Python
-
Updated
Jul 4, 2022 - Python
-
Updated
Apr 11, 2022 - Python
When we define a class like this:
def func():
...
class MyClass:
my_func = lambda self, arg: arg
# or
class MyAnotherClass:
my_func = funcThe 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
Use the recommended way from Vercel's examples:
https://github.com/vercel/next.js/tree/canary/examples/with-google-tag-manager
-
Updated
Jun 7, 2022 - Python
-
Updated
Mar 14, 2022 - Java
-
Updated
Jun 20, 2022 - Python
-
Updated
Jun 3, 2022 - Python
-
Updated
Jul 1, 2022 - Python
Improve this page
Add a description, image, and links to the mypy topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the mypy topic, visit your repo's landing page and select "manage topics."
We only have documentation for schema directives, we should document query directives, here's an example of how they work: https://github.com/strawberry-graphql/strawberry/blob/main/tests/schema/test_directives.py