Florian Bruhin
Florian Bruhin
The entire point of pull requests is getting code review. The point of Hacktoberfest is (at least originally) to support open source projects. You're blocking other people wanting to contribute,...
Sorry for the radio silence, I never got around to taking a deeper look at this, seems like getting a type annotation as a string is surprisingly difficult with a...
At least for Python < 3.14, for two reasons: - A implementation of this considering all possible corner cases evidently [is trickier than I first thought](https://github.com/python/cpython/blob/3.13/Lib/inspect.py#L1439-L1451) (and just copy-pasting that...
I suspected this is going to be trickier than it looked on the surface :sweat_smile:. I really hope we don't need to resort to AST shenanigans, after all, other tools...
I think that's fine, after all that's what `inspect.signature` does as well: ```python import inspect from collections.abc import Callable def func(x: Callable[[], None]) -> None: pass print(inspect.signature(func)) ``` And with...
That's not what I meant with treating it as a string at all :sweat_smile: Parsing the string output definitely isn't necessary here, as you're just picking out what was rendered...
That's because it formats the `__module__` and the [`__qualname__`](https://docs.python.org/3/glossary.html#term-qualified-name) into the output. Maybe that could actually be useful information in real-world scenarios (try e.g. with `class T` being defined at...
Standalone reproducer: ```python import pytest def test_no_app(testdir: pytest.Testdir) -> None: testdir.makepyfile( """ from abc import ABC, abstractmethod class TestBase(ABC): @abstractmethod async def get_application(self): ... class TestInvalid(TestBase): def test_noop(self) -> None:...
Reproducer: ```python import warnings def test_foo(): warnings.warn(UserWarning("aoeu")) ```
Could you please show a [complete, standalone example](http://sscce.org/) which can actually be run to reproduce the problem you describe? For starters, `base_url` and `admin_credentials` are undefined in yours, and a...