Graham Dumpleton
Graham Dumpleton
Change with hopeful fix released in mod_wsgi 5.0.2.
For a start, you don't need the extra level of wrapping as you have. You should be able to write it as: ``` def public_api(stage: Literal["alpha", "beta", "stable"] = "stable"):...
Okay, you replaced use of `partial()` with your own nested function. I guess that also works but will need to think about whether there is any downsides to doing that.
BTW, if the `partial()` one failed, or type checks using introspection were failing in some way in the editor and that was what you were trying to highlight, try again...
What was the actual problem though, was it just that the popup from the editor wasn't giving useful information about arguments and giving warnings about type mismatch, or was there...
So what I gave you as example was wrong. Should have been: ``` """Test the decorator API.""" import functools import inspect import logging import threading from typing import Callable, Literal,...
Not sure if still need to use `wrapt.PartialCallableObjectProxy`.
I am going to reopen this issue to remind me to look at updating the docs.
Needs some explanation text about `PartialCallableObjectProxy` being similar to `partial` and why it exists. So the two code examples can be changed and just add a paragraph after second code...
The only error in that log output which is specifically related to mod_wsgi is: ``` 2025-03-25T03:40:06.000Z[Tue Mar 25 03:40:06.014205 2025] [wsgi:error] [pid 31924:tid 31924] (2)No such file or directory: [client...