def get_package_version(self, package_name: str) -> typing.Optional[PackageVersion]:
package_version = self.pipfile.dev_packages.get(package_name)<EOL>if not package_version:<EOL><INDENT>package_version = self.pipfile.packages.get(package_name)<EOL><DEDENT>return package_version<EOL>
Get locked version of the package.