andy-z / ged4py

GEDCOM tools for Python
MIT License
18 stars 7 forks source link

Extend `Record.sub_tags()` behavior. #40

Closed andy-z closed 3 years ago

andy-z commented 3 years ago

Without positions arguments sub_tags() now returns all direct sub-tags of a record. If positional arguments are provided they can be hierarchical tags (slash-separated), and in that case all sub-tags that match any of the provided tags are turned.

Also I did an initial run of mypy with relaxed rules and fixed few of the potential issues reported by mypy.