Stanislav Zmiev

Results 113 comments of Stanislav Zmiev

@samuelcolvin A gentle reminder to review this feature whenever you have a minute

This is amazing work. Are there any plans on reviewing/merging it, @tiangolo ? Or do we need to provide something extra to make sure that these changes are valid and...

@hmc-cs-mdrissi that's a great idea. Though both pyright and mypy partially disagree with its validity. I believe the correct way would be to do `Literal[True]` and `Literal[False]`. What do you...

> Sounds like a bug, but we'd need to repro it I guess. AFAIK, this should be working. It should allow importing private modules unless there's a py.typed file. @rchiodo...

Note that if anyone makes this request, it must be the the maintainer(s) of python-dotenv.

Essentially you wish to create 3 new types in that one line. Are there any other languages that support such operations? You can already implement such functionality with `NewType` and...

@Changaco Even though your proposal has a more interesting notation, I do not see how it solves the issue that Guido has mentioned. I think that before hardcoding such things...

Pydantc is already capable of range checking so the code the author requested is achievable with: ```python from pydantic import Field, validate_arguments @validate_arguments def example(range_example: int = Field(gt=1, lt=5), min_example:...

@jp-larose to achieve that syntax, you can use pydantic and tips from this article: https://tinkering.xyz/abusing-type-annotations/ The author of this article has created a special range checker too.

Let's go through the problems you are trying to solve. > defining database column types in Python Which ORM are we talking about? Without ORM, you would just define these...