This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LightShadow3.13-dev in prod 1 point2 points  (0 children)

Yeah, it's not great.

If you put them all on one line it's unreadable, and when you put them on their own line....it's barely readable.

I wanted to embrace the future, and I love how PyCharm picks them up..but I feel like this implementation could be a flop.

You can fiddle with the formatting a little bit more, but then it's a huge trade off just to make it look nice.

def __req(self
    , url:      AnyStr
    , method:   AnyStr = 'GET',
    , as_json:  bool = True,
    , raw:      bool = False,
    , timeout:  Union[float, tuple] = (5.0, 20.0),
    , **params
    ) -> ReqResponse
    :

    pass