mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Introduced beartype (#3460)
### What problem does this PR solve? Introduced [beartype](https://github.com/beartype/beartype) for runtime type-checking. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -13,11 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
import dotenv
|
||||
import typing
|
||||
import subprocess
|
||||
|
||||
def get_ragflow_version() -> typing.Optional[str]:
|
||||
def get_ragflow_version() -> str:
|
||||
return RAGFLOW_VERSION_INFO
|
||||
|
||||
|
||||
@ -42,7 +40,7 @@ def get_closest_tag_and_count():
|
||||
return closest_tag
|
||||
else:
|
||||
return f"{commit_id}({closest_tag}~{commits_count})"
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return 'unknown'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user