Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ambiguous warning messages #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

LouisdeBruijn
Copy link
Contributor

Fixes ambiguous warning messages for table_checkpoint and checkpoint_dir
Adds ValueError when both col_names and field_info are given

def if_else(a, b):
	""""""
	if not a and b:
		pass
	else:
		print(f"warning. a: {a}, b: {b}.")

a, b = True, True
if_else(a, b)
a, b = False, True
if_else(a, b)
a, b = True, False
if_else(a, b)
a, b = False, False
if_else(a, b)

$ warning. a: True, b: True.
$ warning. a: True, b: False.
$ warning. a: False, b: False.

@LouisdeBruijn LouisdeBruijn changed the title new warning messages Fix ambiguous warning messages Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant