We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Double in mapping thrown E7001 error
*cfn-lint version: cfn-lint 0.20.1*

*Description of issue.*
When a mapping value is a double (ex. 1.1) it returns the error `E7001:Mapping [map] has invalid property at [property]`

Examples:
With double value:
![image](https://user-images.githubusercontent.com/2495780/57731384-887bc580-7668-11e9-998c-f983a1029716.png)

Changed to Int:
![image](https://user-images.githubusercontent.com/2495780/57731469-b19c5600-7668-11e9-9521-20eadd2885a4.png)

Example CFT: [environment.yaml.txt](https://github.com/aws-cloudformation/cfn-python-lint/files/3179852/environment.yaml.txt)


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/cfnlint/rules/mappings/Configuration.py`
Content:
```
1 """
2   Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 
4   Permission is hereby granted, free of charge, to any person obtaining a copy of this
5   software and associated documentation files (the "Software"), to deal in the Software
6   without restriction, including without limitation the rights to use, copy, modify,
7   merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
8   permit persons to whom the Software is furnished to do so.
9 
10   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
11   INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
12   PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
13   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
14   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 """
17 import six
18 from cfnlint import CloudFormationLintRule
19 from cfnlint import RuleMatch
20 
21 
22 class Configuration(CloudFormationLintRule):
23     """Check if Mappings are configured correctly"""
24     id = 'E7001'
25     shortdesc = 'Mappings are appropriately configured'
26     description = 'Check if Mappings are properly configured'
27     source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html'
28     tags = ['mappings']
29 
30     def match(self, cfn):
31         """Check CloudFormation Parameters"""
32 
33         matches = []
34 
35         mappings = cfn.template.get('Mappings', {})
36         if mappings:
37             for mapname, mapobj in mappings.items():
38                 if not isinstance(mapobj, dict):
39                     message = 'Mapping {0} has invalid property'
40                     matches.append(RuleMatch(
41                         ['Mappings', mapname],
42                         message.format(mapname)
43                     ))
44                 else:
45                     for firstkey in mapobj:
46                         firstkeyobj = mapobj[firstkey]
47                         if not isinstance(firstkeyobj, dict):
48                             message = 'Mapping {0} has invalid property at {1}'
49                             matches.append(RuleMatch(
50                                 ['Mappings', mapname, firstkey],
51                                 message.format(mapname, firstkeyobj)
52                             ))
53                         else:
54                             for secondkey in firstkeyobj:
55                                 if not isinstance(
56                                         firstkeyobj[secondkey],
57                                         (six.string_types, list, six.integer_types)):
58                                     message = 'Mapping {0} has invalid property at {1}'
59                                     matches.append(RuleMatch(
60                                         ['Mappings', mapname, firstkey, secondkey],
61                                         message.format(mapname, secondkey)
62                                     ))
63 
64         return matches
65
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/cfnlint/rules/mappings/Configuration.py b/src/cfnlint/rules/mappings/Configuration.py
--- a/src/cfnlint/rules/mappings/Configuration.py
+++ b/src/cfnlint/rules/mappings/Configuration.py
@@ -32,6 +32,8 @@
 
         matches = []
 
+        valid_map_types = (six.string_types, list, six.integer_types, float)
+
         mappings = cfn.template.get('Mappings', {})
         if mappings:
             for mapname, mapobj in mappings.items():
@@ -53,8 +55,7 @@
                         else:
                             for secondkey in firstkeyobj:
                                 if not isinstance(
-                                        firstkeyobj[secondkey],
-                                        (six.string_types, list, six.integer_types)):
+                                        firstkeyobj[secondkey], valid_map_types):
                                     message = 'Mapping {0} has invalid property at {1}'
                                     matches.append(RuleMatch(
                                         ['Mappings', mapname, firstkey, secondkey],

{"golden_diff": "diff --git a/src/cfnlint/rules/mappings/Configuration.py b/src/cfnlint/rules/mappings/Configuration.py\n--- a/src/cfnlint/rules/mappings/Configuration.py\n+++ b/src/cfnlint/rules/mappings/Configuration.py\n@@ -32,6 +32,8 @@\n \n         matches = []\n \n+        valid_map_types = (six.string_types, list, six.integer_types, float)\n+\n         mappings = cfn.template.get('Mappings', {})\n         if mappings:\n             for mapname, mapobj in mappings.items():\n@@ -53,8 +55,7 @@\n                         else:\n                             for secondkey in firstkeyobj:\n                                 if not isinstance(\n-                                        firstkeyobj[secondkey],\n-                                        (six.string_types, list, six.integer_types)):\n+                                        firstkeyobj[secondkey], valid_map_types):\n                                     message = 'Mapping {0} has invalid property at {1}'\n                                     matches.append(RuleMatch(\n                                         ['Mappings', mapname, firstkey, secondkey],\n", "issue": "Double in mapping thrown E7001 error\n*cfn-lint version: cfn-lint 0.20.1*\r\n\r\n*Description of issue.*\r\nWhen a mapping value is a double (ex. 1.1) it returns the error `E7001:Mapping [map] has invalid property at [property]`\r\n\r\nExamples:\r\nWith double value:\r\n![image](https://user-images.githubusercontent.com/2495780/57731384-887bc580-7668-11e9-998c-f983a1029716.png)\r\n\r\nChanged to Int:\r\n![image](https://user-images.githubusercontent.com/2495780/57731469-b19c5600-7668-11e9-9521-20eadd2885a4.png)\r\n\r\nExample CFT: [environment.yaml.txt](https://github.com/aws-cloudformation/cfn-python-lint/files/3179852/environment.yaml.txt)\r\n\n", "before_files": [{"content": "\"\"\"\n  Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n  software and associated documentation files (the \"Software\"), to deal in the Software\n  without restriction, including without limitation the rights to use, copy, modify,\n  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n  permit persons to whom the Software is furnished to do so.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\nimport six\nfrom cfnlint import CloudFormationLintRule\nfrom cfnlint import RuleMatch\n\n\nclass Configuration(CloudFormationLintRule):\n    \"\"\"Check if Mappings are configured correctly\"\"\"\n    id = 'E7001'\n    shortdesc = 'Mappings are appropriately configured'\n    description = 'Check if Mappings are properly configured'\n    source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html'\n    tags = ['mappings']\n\n    def match(self, cfn):\n        \"\"\"Check CloudFormation Parameters\"\"\"\n\n        matches = []\n\n        mappings = cfn.template.get('Mappings', {})\n        if mappings:\n            for mapname, mapobj in mappings.items():\n                if not isinstance(mapobj, dict):\n                    message = 'Mapping {0} has invalid property'\n                    matches.append(RuleMatch(\n                        ['Mappings', mapname],\n                        message.format(mapname)\n                    ))\n                else:\n                    for firstkey in mapobj:\n                        firstkeyobj = mapobj[firstkey]\n                        if not isinstance(firstkeyobj, dict):\n                            message = 'Mapping {0} has invalid property at {1}'\n                            matches.append(RuleMatch(\n                                ['Mappings', mapname, firstkey],\n                                message.format(mapname, firstkeyobj)\n                            ))\n                        else:\n                            for secondkey in firstkeyobj:\n                                if not isinstance(\n                                        firstkeyobj[secondkey],\n                                        (six.string_types, list, six.integer_types)):\n                                    message = 'Mapping {0} has invalid property at {1}'\n                                    matches.append(RuleMatch(\n                                        ['Mappings', mapname, firstkey, secondkey],\n                                        message.format(mapname, secondkey)\n                                    ))\n\n        return matches\n", "path": "src/cfnlint/rules/mappings/Configuration.py"}], "after_files": [{"content": "\"\"\"\n  Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n  software and associated documentation files (the \"Software\"), to deal in the Software\n  without restriction, including without limitation the rights to use, copy, modify,\n  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n  permit persons to whom the Software is furnished to do so.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\nimport six\nfrom cfnlint import CloudFormationLintRule\nfrom cfnlint import RuleMatch\n\n\nclass Configuration(CloudFormationLintRule):\n    \"\"\"Check if Mappings are configured correctly\"\"\"\n    id = 'E7001'\n    shortdesc = 'Mappings are appropriately configured'\n    description = 'Check if Mappings are properly configured'\n    source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html'\n    tags = ['mappings']\n\n    def match(self, cfn):\n        \"\"\"Check CloudFormation Parameters\"\"\"\n\n        matches = []\n\n        valid_map_types = (six.string_types, list, six.integer_types, float)\n\n        mappings = cfn.template.get('Mappings', {})\n        if mappings:\n            for mapname, mapobj in mappings.items():\n                if not isinstance(mapobj, dict):\n                    message = 'Mapping {0} has invalid property'\n                    matches.append(RuleMatch(\n                        ['Mappings', mapname],\n                        message.format(mapname)\n                    ))\n                else:\n                    for firstkey in mapobj:\n                        firstkeyobj = mapobj[firstkey]\n                        if not isinstance(firstkeyobj, dict):\n                            message = 'Mapping {0} has invalid property at {1}'\n                            matches.append(RuleMatch(\n                                ['Mappings', mapname, firstkey],\n                                message.format(mapname, firstkeyobj)\n                            ))\n                        else:\n                            for secondkey in firstkeyobj:\n                                if not isinstance(\n                                        firstkeyobj[secondkey], valid_map_types):\n                                    message = 'Mapping {0} has invalid property at {1}'\n                                    matches.append(RuleMatch(\n                                        ['Mappings', mapname, firstkey, secondkey],\n                                        message.format(mapname, secondkey)\n                                    ))\n\n        return matches\n", "path": "src/cfnlint/rules/mappings/Configuration.py"}]}