Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stubgenj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scripting-tools
stubgenj
Commits
4537e304
Verified
Commit
4537e304
authored
2 years ago
by
Ivan Sinkarenko
🐍
Browse files
Options
Downloads
Patches
Plain Diff
Add string-arg JPackage overload
parent
8d11dbbf
No related branches found
No related tags found
1 merge request
!17
Generate typing overload for JPackage with string variable argument
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stubgenj/_stubgenj.py
+2
-0
2 additions, 0 deletions
stubgenj/_stubgenj.py
with
2 additions
and
0 deletions
stubgenj/_stubgenj.py
+
2
−
0
View file @
4537e304
...
...
@@ -224,6 +224,8 @@ def generateJPypeJPackageOverloadStubs(outputPath: pathlib.Path, topLevelPackage
'
import typing
\n\n
'
,
'
\n
'
.
join
(
imports
)
+
'
\n\n
'
,
'
\n
'
.
join
(
overloads
)
+
'
\n\n
'
,
'
@typing.overload
\n
'
,
'
def JPackage(__package_name: str) -> types.ModuleType: ...
\n\n\n
'
,
'
def JPackage(__package_name) -> types.ModuleType: ...
\n\n
'
,
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment