Peter Schutt
Peter Schutt
@sinisaos you wouldn't happen to have a repro handy would you?
> @peterschutt I'm sorry but I don't understand. Do you think I have a github repo with the code? I have not. I just tried to change the [admin mount](https://github.com/piccolo-orm/piccolo/blob/master/piccolo/apps/asgi/commands/templates/app/_starlite_app.py.jinja#L27-L37)...
Thanks @dantownsend - I've opened a tracking issue on our side, we'll get to the bottom of it (hopefully!) :+1:
You can do this with a plugin, e.g.,: ```python # typeddict_plugin.py from typing import Type, Any, Dict, TypedDict, get_type_hints, is_typeddict from starlite import PluginProtocol from pydantic import BaseModel, create_modelhttps://github.com/python/mypy/issues/11030 class...
~I don't think `DTO.from_model_instance()` can be supported for `TypedDict` - correct me if I'm wrong - there is no typing info retained when a `dict` is constructed from a `TypedDict`.~...
And another: ``` unit = 'second' @pytest.mark.parametrize("unit", ["minute", "second", "hour", "day"]) async def test_rate_limiting(unit: DurationUnit) -> None: @get("/") def handler() -> None: return None config = RateLimitConfig(rate_limit=(unit, 1)) cache_key =...
This is from the example app - knowing that I'm using 2.0 there it makes it more straightforward. Not sure how this looks if we are trying to support 1.4...
I tried to repro. Env (also tried with 0.0.2a27): ``` (.venv) peter@peter-Inspiron-15-5510:~/PycharmProjects/sqla-stubs-228$ pip freeze greenlet==1.1.3 mypy==0.971 mypy-extensions==0.4.3 SQLAlchemy==1.4.41 sqlalchemy2-stubs==0.0.2a26 tomli==2.0.1 typing_extensions==4.3.0 ``` and ```python # main.py from sqlalchemy import Integer,...
`poetry new` is the first example that stands out to me. They have [cleo](https://github.com/python-poetry/cleo.git).
Would it also mean `cookiecutter` was a dependency of the standard install?