Skip to content

Commit

Permalink
use python 3.10 for pylint (#1168)
Browse files Browse the repository at this point in the history
Co-authored-by: Pyifan <[email protected]>
  • Loading branch information
Pyifan and Pyifan authored Jan 7, 2025
1 parent 2800cca commit 4711784
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
if: needs.is_source_changed.outputs.is_source_changed == 'true'
env:
BLACK_VERSION: "22.10.0"
LINT_PYTHON_VERSION: "3.7"
LINT_PYTHON_VERSION: "3.10"
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Expand Down
6 changes: 3 additions & 3 deletions testplan/common/serialization/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from marshmallow import fields
from marshmallow import class_registry
from marshmallow.base import SchemaABC
from marshmallow.schema import Schema
from marshmallow.utils import missing as missing_

from testplan.common.utils import comparison
Expand Down Expand Up @@ -291,12 +291,12 @@ def _get_schema_obj(self, schema_value):
if callable(schema_value) and not isinstance(schema_value, type):
schema_value = schema_value()

if isinstance(schema_value, SchemaABC):
if isinstance(schema_value, Schema):
schema_value.context.update(parent_ctx)
return schema_value

elif isinstance(schema_value, type) and issubclass(
schema_value, SchemaABC
schema_value, Schema
):
return schema_value(many=self.many, context=parent_ctx)

Expand Down
1 change: 1 addition & 0 deletions testplan/exporters/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ def __getattr__(name):
from .xml import XMLExporter

return XMLExporter
raise AttributeError(f"module {__name__} has no attribute {name}")

0 comments on commit 4711784

Please sign in to comment.