Data structure containing information about a newly created commit. Returned by any method that creates a commit on the Hub: [`create_commit`], [`upload_file`], [`upload_folder`], [`delete_file`], [`delete_folder`]. It inherits from `str` for backward compatibility but using methods specifi
| 244 | |
| 245 | @dataclass |
| 246 | class CommitInfo: |
| 247 | """Data structure containing information about a newly created commit. |
| 248 | |
| 249 | Returned by any method that creates a commit on the Hub: [`create_commit`], [`upload_file`], [`upload_folder`], |
| 250 | [`delete_file`], [`delete_folder`]. It inherits from `str` for backward compatibility but using methods specific |
| 251 | to `str` is deprecated. |
| 252 | |
| 253 | Attributes: |
| 254 | commit_url (`str`): |
| 255 | Url where to find the commit. |
| 256 | |
| 257 | commit_message (`str`): |
| 258 | The summary (first line) of the commit that has been created. |
| 259 | |
| 260 | commit_description (`str`): |
| 261 | Description of the commit that has been created. Can be empty. |
| 262 | |
| 263 | oid (`str`): |
| 264 | Commit hash id. Example: `"91c54ad1727ee830252e457677f467be0bfd8a57"`. |
| 265 | |
| 266 | """ |
| 267 | |
| 268 | commit_url: str |
| 269 | commit_message: str |
| 270 | commit_description: str |
| 271 | oid: str |
| 272 | |
| 273 | def to_dict(cls): |
| 274 | return { |
| 275 | 'commit_url': cls.commit_url, |
| 276 | 'commit_message': cls.commit_message, |
| 277 | 'commit_description': cls.commit_description, |
| 278 | 'oid': cls.oid, |
| 279 | } |
| 280 | |
| 281 | |
| 282 | @dataclass |
no outgoing calls
searching dependent graphs…