Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improving typing: propagateget solution (tolist)#2817

Unanswered
stdedos asked this question inQ&A
Discussion options

I noticed the "hack"

defget(self,id:Union[str,int],lazy:bool=False,**kwargs:Any    )->ProjectMergeRequestDiscussion:returncast(ProjectMergeRequestDiscussion,super().get(id=id,lazy=lazy,**kwargs)        )

Are you planning to extend it? e.g., it might also be worth to do

deflist(self,**kwargs:Any    )->Union[List[ProjectMergeRequestDiscussion],Iterator[ProjectMergeRequestDiscussion]]:returncast(ProjectMergeRequestDiscussion,super().list(**kwargs)        )

Are those "thin/zero abstractions"?
Or is there any other reason you didn't extend them?
... Is it done "somehow automatically", or are all of those manually written?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@stdedos

[8]ページ先頭

©2009-2025 Movatter.jp