greenbone / python-gvm

Greenbone Vulnerability Management Python Library
https://greenbone.github.io/python-gvm/
GNU General Public License v3.0
107 stars 60 forks source link

Introduce a base enum class #1125

Closed bjoernricks closed 8 months ago

bjoernricks commented 8 months ago

What

Implement a base enum class for our type classes in python-gvm

Why

The current implementation before this PR contains from_string methods for every type. Introducing a base enum class avoids code duplication by using a generalized from_string method.

Checklist

github-actions[bot] commented 8 months ago

Conventional Commits Report

Type Number
Changed 1
Added 1

:rocket: Conventional commits found.