Skip to content

Commit ff6351a

Browse files
authored
Merge branch 'main' into process-local-dir
2 parents 3de17bb + 8d450ff commit ff6351a

File tree

6 files changed

+11
-32
lines changed

6 files changed

+11
-32
lines changed

.github/workflows/pylint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/python-app.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
# stop the build if there are Python syntax errors or undefined names
3434
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3535
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37-
- name: Test with pytest
38-
run: |
39-
pytest
36+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37+
38+
# - name: Test with pytest
39+
# run: |
40+
# pytest

api/analyzers/c/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55
from ...entities import *
66
from ...graph import Graph
7-
from typing import Union, Optional
7+
from typing import Optional
88
from ..analyzer import AbstractAnalyzer
99

1010
import tree_sitter_c as tsc

api/entities/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
from .function import Function
77
from .argument import Argument
88
from .entity_encoder import *
9-

api/entities/struct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import List, Optional
22

33
class Struct():
44
"""
@@ -28,7 +28,7 @@ def __init__(self, path: str, name: str, doc: Optional[str],
2828

2929
def __str__(self) -> str:
3030
return f"""
31-
id: {self.id if hasattr(self, 'id') else 'Unknown'}
31+
id: {self.id if hasattr(self, 'id') else 'Unknown'} # type: ignore
3232
path: {self.path}
3333
name: {self.name}
3434
doc: {self.doc}

tests/source_files/py/src.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Self
2+
13
def log(msg: str) -> None:
24
print(f'msg: {msg}')
35

@@ -7,7 +9,7 @@ def __init__(self, name: str, duration: int):
79
self.duration = duration
810
print(f'name: {name}, duration: {duration}')
911

10-
def abort(self, delay:float) -> Task:
12+
def abort(self, delay:float) -> Self:
1113
log(f'Task {self} aborted')
1214
return self
1315

0 commit comments

Comments
 (0)