Skip to content

Commit 1a404b6

Browse files
authored
Merge pull request #57 from manicmaniac/fix-stub
Fix stub
2 parents 12ab5c9 + 07c3b11 commit 1a404b6

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.github/workflows/lint.yml

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

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ jobs:
5757
run: ./cc-test-reporter sum-coverage --output - coverage.*.xml | ./cc-test-reporter upload-coverage --debug --input -
5858
env:
5959
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
60+
lint:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
- name: clang-format
65+
run: clang-format --Werror --dry-run arc4.c
66+
- run: pip install . flake8 mypy pygments restructuredtext_lint
67+
- run: flake8
68+
- run: stubtest arc4
69+
- run: rst-lint README.rst

arc4-stubs/__init__.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
class ARC4(object):
2-
def __init__(self, key: bytes): ...
1+
from typing_extensions import final
32

4-
def encrypt(self, data: bytes) -> bytes: ...
53

4+
@final
5+
class ARC4(object):
6+
def __init__(self, key: bytes) -> None: ...
7+
def encrypt(self, data: bytes) -> bytes: ...
68
def decrypt(self, data: bytes) -> bytes: ...

0 commit comments

Comments
 (0)