src/pybel/parser/parse_metadata.py
def raise_for_version(self, line: str, position: int, version: str) -> None:
        """Check that a version string is valid for BEL documents.

        This means it's either in the YYYYMMDD or semantic version format.

        :param line: The line being parsed
        :param position: The position in the line being parsed
        :param str version: A version string
        :raises: VersionFormatWarning
        """
        if valid_date_version(version):
            return

        if not SEMANTIC_VERSION_STRING_RE.match(version):
            raise VersionFormatWarning(self.get_line_number(), line, position, version)
Check that a version string is valid for BEL documents.

        This means it's either in the YYYYMMDD or semantic version format.

        :param line: The line being parsed
        :param position: The position in the line being parsed
        :param str version: A version string
        :raises: VersionFormatWarning
        
Check that a version string is valid for BEL documents.
This means it's either in the YYYYMMDD or semantic version format.
Check that a version string is valid for BEL documents . This means it ' s either in the YYYYMMDD or semantic version format .
def raise_for_version(self, line: str, position: int, version: str) -> None:
        if valid_date_version(version):
            return
        if not SEMANTIC_VERSION_STRING_RE.match(version):
            raise VersionFormatWarning(self.get_line_number(), line, position, version)
def raise_for_version ( self , line : str , position : int , version : str ) -> None : if valid_date_version ( version ) : return if not SEMANTIC_VERSION_STRING_RE . match ( version ) : raise VersionFormatWarning ( self . get_line_number ( ) , line , position , version )
Check that a version string is valid for BEL documents.
Check that a version string is valid for BEL documents .
"""Check that a version string is valid for BEL documents.

        This means it's either in the YYYYMMDD or semantic version format.

        :param line: The line being parsed
        :param position: The position in the line being parsed
        :param str version: A version string
        :raises: VersionFormatWarning
        """
None
self
line
str
The line being parsed
The line being parsed
position
int
The position in the line being parsed
The position in the line being parsed
version
str
A version string
A version string