Skip to content

Commit eff0f22

Browse files
committed
feat: lint fixes
1 parent baa6bef commit eff0f22

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/robotlibcore/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"HybridCore",
3434
"KeywordBuilder",
3535
"KeywordSpecification",
36-
"PluginParser",
37-
"keyword",
36+
"Module",
3837
"NoKeywordFound",
3938
"PluginError",
39+
"PluginParser",
4040
"PythonLibCoreException",
41-
"Module",
41+
"keyword",
4242
]

src/robotlibcore/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ class Module:
2525
kw_args: dict
2626

2727

28-
__all__ = ["Module", "NoKeywordFound", "PluginError", "PythonLibCoreException", "_translation", "_translated_keywords"]
28+
__all__ = ["Module", "NoKeywordFound", "PluginError", "PythonLibCoreException", "_translated_keywords", "_translation"]

utest/test_robotlibcore.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ def test_library_cannot_be_class():
105105
HybridCore([HybridLibrary])
106106
assert str(exc_info.value) == "Libraries must be modules or instances, got class 'HybridLibrary' instead."
107107

108+
108109
def test_get_library_attr():
109110
class TestClass(HybridCore):
110111
def __init__(self):
111-
self.a = self.b *2
112-
super().__init__()
112+
self.a = self.b * 2
113113

114114
with pytest.raises(AttributeError):
115115
TestClass()
116-

0 commit comments

Comments
 (0)