Sylvain Marié

Results 178 issues of Sylvain Marié

Hi, thanks so much for this nice plugin ! I recently created a commandline tool to generate badges for tests, coverage and flake8: https://smarie.github.io/python-genbadge/ Concerning flake8, it plays very nicely...

Fixes #20 This is for tools such as [`genbadge`](https://github.com/smarie/python-genbadge) to get the same level of severity as `flake8_html` from the `flake8` codes

Not sure these need to be in typing_inspect, but for I am currently relying on the private names so I guess there is maybe something to do in the api...

I had not refreshed my profile for a while and tried this week, but the refresh confirmed my previous attempt months ago: it seems to have stopped counting since January...

Fixes https://github.com/mkdocs/mkdocs/issues/2709 This is a fix for previous PR (reverted) #2710 `SubConfig` now has an optional constructor argument named `ignore_validation`. By default it is `True` to preserve retrocompatibility with legacy....

While developing [mkdocs-gallery]() I found out that the `SubConfig` class does not retrieve the failures and warnings from the nested options. This is because `run_validation` executes `Config.validate` but does not...

The default branch on github is now "main" and not "master". The default behaviour of mkdocs for "edit_uri" could maybe be adapted accordingly. Of course this means potential breaks when...

PEP484 allows `TypeVar` to be used anywhere, not necessarily in Generic classes, see [this section](https://www.python.org/dev/peps/pep-0484/#type-aliases). However as of today the following fails: ```python from enforce import runtime_validation from typing import...

```python from inspect import signature from enforce import runtime_validation from typing import Generic, TypeVar T = TypeVar('T') class A(Generic[T]): def __init__(self, foo: T): self.foo = foo A(foo=1) s = signature(A.__init__)...

```python from typing import Optional, Tuple from enforce import runtime_validation @runtime_validation def foo(arg: Optional[Tuple[str, str]] = None): pass foo() ``` Yields `TypeError: 'NoneType' object is not iterable`. Note that the...