from typing import Optional

import attr

from . import helpers
from .action_abstract_test_summary import ActionAbstractTestSummary


@attr.s
class ActionTestSummaryIdentifiableObject(ActionAbstractTestSummary):
    identifier: Optional[str] = attr.ib()

    @classmethod
    def convert_identifier_field(cls, report: dict) -> Optional[str]:
        return helpers.string_from_report(
            report.get("identifier"), dict(default=None)
        )

4aaec6f89c4a94458699e924531e4f7963c19d8b
<mask token>

<mask token>


@attr.s
class ActionTestSummaryIdentifiableObject(ActionAbstractTestSummary):
    identifier: Optional[str] = attr.ib()
    <mask token>

<mask token>


@attr.s
class ActionTestSummaryIdentifiableObject(ActionAbstractTestSummary):
    identifier: Optional[str] = attr.ib()

    @classmethod
    def convert_identifier_field(cls, report: dict) ->Optional[str]:
        return helpers.string_from_report(report.get('identifier'), dict(
            default=None))

from typing import Optional
import attr
from . import helpers
from .action_abstract_test_summary import ActionAbstractTestSummary


@attr.s
class ActionTestSummaryIdentifiableObject(ActionAbstractTestSummary):
    identifier: Optional[str] = attr.ib()

    @classmethod
    def convert_identifier_field(cls, report: dict) ->Optional[str]:
        return helpers.string_from_report(report.get('identifier'), dict(
            default=None))

from typing import Optional

import attr

from . import helpers
from .action_abstract_test_summary import ActionAbstractTestSummary


@attr.s
class ActionTestSummaryIdentifiableObject(ActionAbstractTestSummary):
    identifier: Optional[str] = attr.ib()

    @classmethod
    def convert_identifier_field(cls, report: dict) -> Optional[str]:
        return helpers.string_from_report(
            report.get("identifier"), dict(default=None)
        )
