def resource_list()

in src/pydolphinscheduler/core/task.py [0:0]


    def resource_list(self) -> list[dict[str, Resource]]:
        """Get task define attribute `resource_list`."""
        resources = set()
        for res in self._resource_list:
            if isinstance(res, str):
                resources.add(
                    Resource(
                        name=res, user_name=self.user_name
                    ).get_fullname_from_database()
                )
            elif isinstance(res, dict) and ResourceKey.NAME in res:
                warnings.warn(