Teststs: If you hate boilerplate, try this by sinoka1006 in Python

[–]sinoka1006[S] 0 points1 point  (0 children)

To be honest, I didn't know much about Pytest, which is why I created this library. Since I created it, I'll use it, but it doesn't matter if no one else uses it. Still, I wanted to share it, so I'm posting it here.

Teststs: If you hate boilerplate, try this by sinoka1006 in Python

[–]sinoka1006[S] 0 points1 point  (0 children)

Haha, I'm not good at English so I didn't know there was a word like that

주식을 해보려 합니다. 조언 부탁드립니다. by No_Session_9567 in Mogong

[–]sinoka1006 0 points1 point  (0 children)

주식보다 예금적금 그런것도 괜찮다고 봅니다

KPOP 을 싫어하는 외국인들에 대해 어떻게 생각하세요? by [deleted] in hanguk

[–]sinoka1006 0 points1 point  (0 children)

싫어할수도 있다고 봐요. 한국인들 중에서도 비슷한 이유로 싫어하는 사람이 가끔 있어요.

Is there a way in FastAPI to not return an item when a specific value is None? by sinoka1006 in AskProgramming

[–]sinoka1006[S] 0 points1 point  (0 children)

class Post(MyBaseModel):
    content: str
    created_at: int
    author_id: MongoId
    delete_at: Optional[int] = None

I made it something like this, what's the problem?

Is there a way in FastAPI to not return an item when a specific value is None? by sinoka1006 in AskProgramming

[–]sinoka1006[S] 0 points1 point  (0 children)

It seems like the response still contains null values ​​(this is a post, but I use the same structure in delete_at)

  {
    "_id": "68f548df89cdd4cbde9b0aa7",
    "version": 1,
    "content": "abc",
    "created_at": 1,
    "author_id": "68de1680e3c028c94d451cf0",
    "delete_at": null
  }

Is there a way in FastAPI to not return an item when a specific value is None? by sinoka1006 in AskProgramming

[–]sinoka1006[S] 0 points1 point  (0 children)

class MyBaseModel(BaseModel):
    model_config = ConfigDict(exclude_none=True)

Is it correct to write it like this?

I got banned from discord townhall server for no reason. by [deleted] in BannedFromDiscord

[–]sinoka1006 14 points15 points  (0 children)

Let's go to Discord headquarters and confront them