miaowware / ctyparser

A CTY.DAT parser for modern amateur radio programs
https://ctyparser.miaow.io/
MIT License
4 stars 2 forks source link

convert `.version` to property #34

Closed classabbyamp closed 3 years ago

classabbyamp commented 4 years ago

This also makes for better documentation.

Steps:

  1. s/self.version/self._version
  2. remove version from class docstring
  3. add this:
    @property
    def version(self) -> str:
        """The version/date of the current BigCTY data.

        :getter: Returns version in ``YYYYMMDD`` format
        :type: str
        """
        return self._version