(
compile_opt,
load_opt,
populate_existing=None,
version_check=None,
only_load_props=None,
refresh_state=None,
identity_token=None,
is_user_refresh=None,
)
| 716 | |
| 717 | |
| 718 | def _set_get_options( |
| 719 | compile_opt, |
| 720 | load_opt, |
| 721 | populate_existing=None, |
| 722 | version_check=None, |
| 723 | only_load_props=None, |
| 724 | refresh_state=None, |
| 725 | identity_token=None, |
| 726 | is_user_refresh=None, |
| 727 | ): |
| 728 | compile_options = {} |
| 729 | load_options = {} |
| 730 | if version_check: |
| 731 | load_options["_version_check"] = version_check |
| 732 | if populate_existing: |
| 733 | load_options["_populate_existing"] = populate_existing |
| 734 | if refresh_state: |
| 735 | load_options["_refresh_state"] = refresh_state |
| 736 | compile_options["_for_refresh_state"] = True |
| 737 | if only_load_props: |
| 738 | compile_options["_only_load_props"] = frozenset(only_load_props) |
| 739 | if identity_token: |
| 740 | load_options["_identity_token"] = identity_token |
| 741 | |
| 742 | if is_user_refresh: |
| 743 | load_options["_is_user_refresh"] = is_user_refresh |
| 744 | if load_options: |
| 745 | load_opt += load_options |
| 746 | if compile_options: |
| 747 | compile_opt += compile_options |
| 748 | |
| 749 | return compile_opt, load_opt |
| 750 | |
| 751 | |
| 752 | def _setup_entity_query( |
no outgoing calls
no test coverage detected