Register SNMP_Section Getting all_of NameError

Managed to narrow this down by removing the explicitly listed items in the import statement.

from .agent_based_api.v1 import *

Once I saw that it worked and got past the error, went back to the API reference document and noted that the criteria under the register.snmp_section mentions detect (SNMPDetectSpecification) but did not list any items. Stepping back up the tree, found them under the parent.

Modified the import list to specifically include those and was able to continue working.

from .agent_based_api.v1 import (
    all_of,
    equals,
    startswith,
    contains,
    register,
    Metric,
    Result,
    SNMPTree,
    Service,
    State,
)

I am not sure if this is expected behavior or implied but it did trip me up. I guess I thought the import of register.snmp_section would include the detect options.

Posting this follow up in case it helps anyone else.

Sincerely,
Scotsie