Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Commits
d19eeb19
Commit
d19eeb19
authored
11 months ago
by
Eliott Sammier
Browse files
Options
Downloads
Patches
Plain Diff
Fix Pyright ignore rule on export_corese.py
parent
80d4aa81
No related branches found
No related tags found
1 merge request
!1
Main
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tetras_extraction/script/pyrightconfig.json
+4
-1
4 additions, 1 deletion
tetras_extraction/script/pyrightconfig.json
tetras_extraction/script/src/export_corese.py
+1
-2
1 addition, 2 deletions
tetras_extraction/script/src/export_corese.py
with
5 additions
and
3 deletions
tetras_extraction/script/pyrightconfig.json
+
4
−
1
View file @
d19eeb19
...
@@ -10,5 +10,8 @@
...
@@ -10,5 +10,8 @@
"reportUnknownArgumentType"
:
"none"
,
"reportUnknownArgumentType"
:
"none"
,
"reportUnknownVariableType"
:
"none"
,
"reportUnknownVariableType"
:
"none"
,
"reportUnknownMemberType"
:
"none"
,
"reportUnknownMemberType"
:
"none"
,
"reportAny"
:
"none"
"reportAny"
:
"none"
,
"ignore"
:
[
"src/export_corese.py"
]
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tetras_extraction/script/src/export_corese.py
+
1
−
2
View file @
d19eeb19
# type: ignore
# type: ignore
# This module isolates calls to Corese via the py4j interface,
# This module isolates calls to Corese via the py4j interface,
# because py4j has no stubs and pretty much breaks type checkers.
# because py4j has no stubs and pretty much breaks type checkers.
# This is also declared in pyrightconfig.json
import
atexit
import
atexit
import
subprocess
import
subprocess
...
@@ -36,8 +37,6 @@ def apply_templates() -> str:
...
@@ -36,8 +37,6 @@ def apply_templates() -> str:
Graph
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
Graph
Graph
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
Graph
Load
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
load
.
Load
Load
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
load
.
Load
Property
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
util
.
Property
Property
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
util
.
Property
QueryProcess
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
query
.
QueryProcess
RDF
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
logic
.
RDF
Transformer
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
transform
.
Transformer
Transformer
=
gateway
.
jvm
.
fr
.
inria
.
corese
.
core
.
transform
.
Transformer
# ==> Create graph, load ontology
# ==> Create graph, load ontology
...
...
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